BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/lina/timezone-select-demo-base

Timezone Select Base UI Demo

lina/timezone-select-demo-base
FreeComponent

A demo showcasing the timezone select component using Lina based on Base UI

Install it

npx shadcn@latest add https://lina.sameer.sh/r/timezone-select-demo-base.json

Source

registry/base-ui/examples/timezone-select.tsxlina.sameer.sh/r/timezone-select-demo-base.json
1"use client";
2
3import { useId, useMemo, useState } from "react";
4import {
5 Command,
6 CommandEmpty,
7 CommandGroup,
8 CommandInput,
9 CommandItem,
10 CommandList,
11} from "@/registry/base-ui/examples/command";
12
13import { CheckIcon, ChevronDownIcon } from "lucide-react";
14
15import { Button } from "@/components/ui/button";
16import { Label } from "@/components/ui/label";
17import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
18
19import { cn } from "@/lib/utils";
20
21export function TimezonSelectExample() {
22 const id = useId();
23 const [open, setOpen] = useState<boolean>(false);
24 const [value, setValue] = useState<string>("Asia/Calcutta");
25
26 const timezones = Intl.supportedValuesOf("timeZone");
27
28 const formattedTimezones = useMemo(() => {
29 return timezones
30 .map((timezone) => {
31 const formatter = new Intl.DateTimeFormat("en", {
32 timeZone: timezone,
33 timeZoneName: "shortOffset",
34 });
35 const parts = formatter.formatToParts(new Date());
36 const offset = parts.find((part) => part.type === "timeZoneName")?.value || "";
37 const modifiedOffset = offset === "GMT" ? "GMT+0" : offset;
38
39 return {
40 value: timezone,
41 label: `(${modifiedOffset}) ${timezone.replace(/_/g, " ")}`,
42 numericOffset: parseInt(offset.replace("GMT", "").replace("+", "") || "0"),
43 };
44 })
45 .sort((a, b) => a.numericOffset - b.numericOffset);
46 }, [timezones]);
47
48 return (
49 <div className="*:not-first:mt-2">
50 <Label htmlFor={id}>Timezone select with search</Label>
51 <Popover open={open} onOpenChange={setOpen}>
52 <PopoverTrigger asChild>
53 <Button
54 id={id}
55 variant="outline"
56 role="combobox"
57 aria-expanded={open}
58 className="bg-background hover:bg-background border-input w-full justify-between px-3 font-normal outline-offset-0 outline-none focus-visible:outline-[3px]"
59 >
60 <span className={cn("truncate", !value && "text-muted-foreground")}>
61 {value ? formattedTimezones.find((timezone) => timezone.value === value)?.label : "Select timezone"}
62 </span>
63 <ChevronDownIcon size={16} className="text-muted-foreground/80 shrink-0" aria-hidden="true" />
64 </Button>
65 </PopoverTrigger>
66// … truncated

What it pulls in

npm packages

  • lucide-react

Other registry items

  • button
  • label
  • popover
  • https://lina.sameer.sh/r/lina-base.json
  • https://lina.sameer.sh/r/command-base.json

Files it writes

  • registry/base-ui/examples/timezone-select.tsx

Facts

Registry
lina
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-09
Last confirmed
today

Go to the source

lina.sameer.sh SameerJS6/lina on GitHub Raw registry item This item as JSON

More from lina

All 10 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Command based on Lina's Base UI variantcommand-baselinaComponentsFree2 deps
Command based on Lina's Radix UI variantcommand-radixlinaComponentsFree2 deps
Horizontal Scroll Area Base Demohorizontal-scroll-demo-baselinaComponentsFreeno deps
Horizontal Scroll Area Radix Demohorizontal-scroll-demo-radixlinaComponentsFreeno deps
Base UI Adaptive Scroll Arealina-baselinaComponentsFree1 dep · 2 files
Radix Adaptive Scroll Arealina-radixlinaComponentsFree1 dep · 2 files
Timezone Select Radix Demotimezone-select-demo-radixlinaComponentsFree1 dep
Vertical Scroll Area Base Demovertical-scroll-demo-baselinaComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex