BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/gmhlab/native-select

native-select

gmhlab/native-select
FreeComponent

gmhlab publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/gmhlab/monorepo/main/packages/ui/public/r/native-select.json

Source

registry/new-york/ui/native-select.tsxraw.githubusercontent.com/gmhlab/monorepo/main/packages/ui/public/r/native-select.json
1import * as React from "react"
2import { ChevronDownIcon } from "lucide-react"
3
4import { cn } from "@/lib/utils"
5
6function NativeSelect({
7 className,
8 size = "default",
9 ...props
10}: Omit<React.ComponentProps<"select">, "size"> & { size?: "sm" | "default" }) {
11 return (
12 <div
13 className="group/native-select relative w-fit has-[select:disabled]:opacity-50"
14 data-slot="native-select-wrapper"
15 >
16 <select
17 data-slot="native-select"
18 data-size={size}
19 className={cn(
20 "border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-8 data-[size=sm]:py-1",
21 "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
22 "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
23 className
24 )}
25 {...props}
26 />
27 <ChevronDownIcon
28 className="text-muted-foreground pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 opacity-50 select-none"
29 aria-hidden="true"
30 data-slot="native-select-icon"
31 />
32 </div>
33 )
34}
35
36function NativeSelectOption({ ...props }: React.ComponentProps<"option">) {
37 return <option data-slot="native-select-option" {...props} />
38}
39
40function NativeSelectOptGroup({
41 className,
42 ...props
43}: React.ComponentProps<"optgroup">) {
44 return (
45 <optgroup
46 data-slot="native-select-optgroup"
47 className={cn(className)}
48 {...props}
49 />
50 )
51}
52
53export { NativeSelect, NativeSelectOptGroup, NativeSelectOption }

What it pulls in

npm packages

  • lucide-react

Files it writes

  • registry/new-york/ui/native-select.tsx

Facts

Registry
gmhlab
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
2 days ago

Go to the source

gwglobalmentalhealth.com gmhlab/monorepo on GitHub Raw registry item This item as JSON

More from gmhlab

All 64 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordiongmhlabComponentsFree2 deps
alertalertgmhlabComponentsFree1 dep
alert-dialogalert-dialoggmhlabComponentsFree1 dep
aspect-ratioaspect-ratiogmhlabComponentsFree1 dep
avataravatargmhlabComponentsFree1 dep
badgebadgegmhlabComponentsFree2 deps
breadcrumbbreadcrumbgmhlabComponentsFree2 deps
buttonbuttongmhlabComponentsFree2 deps
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex