BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn/ui/native-select

native-select

agileflow-projectquestorg/native-select
FreeComponent

shadcn/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/native-select.json

Source

registry/radix-nova/ui/native-select.tsxraw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/native-select.json
1import * as React from "react"
2
3import { cn } from "@/registry/bases/radix/lib/utils"
4import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
5
6type NativeSelectProps = Omit<React.ComponentProps<"select">, "size"> & {
7 size?: "sm" | "default"
8}
9
10function NativeSelect({
11 className,
12 size = "default",
13 ...props
14}: NativeSelectProps) {
15 return (
16 <div
17 className={cn(
18 "group/native-select relative w-fit has-[select:disabled]:opacity-50",
19 className
20 )}
21 data-slot="native-select-wrapper"
22 data-size={size}
23 >
24 <select
25 data-slot="native-select"
26 data-size={size}
27 className="border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 w-full min-w-0 appearance-none rounded-lg border bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors select-none focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 outline-none disabled:pointer-events-none disabled:cursor-not-allowed"
28 {...props}
29 />
30 <IconPlaceholder
31 lucide="ChevronDownIcon"
32 tabler="IconSelector"
33 hugeicons="UnfoldMoreIcon"
34 phosphor="CaretDownIcon"
35 className="text-muted-foreground top-1/2 right-2.5 size-4 -translate-y-1/2 pointer-events-none absolute select-none"
36 aria-hidden="true"
37 data-slot="native-select-icon"
38 />
39 </div>
40 )
41}
42
43function NativeSelectOption({ ...props }: React.ComponentProps<"option">) {
44 return <option data-slot="native-select-option" {...props} />
45}
46
47function NativeSelectOptGroup({
48 className,
49 ...props
50}: React.ComponentProps<"optgroup">) {
51 return (
52 <optgroup
53 data-slot="native-select-optgroup"
54 className={cn(className)}
55 {...props}
56 />
57 )
58}
59
60export { NativeSelect, NativeSelectOptGroup, NativeSelectOption }

Files it writes

  • registry/radix-nova/ui/native-select.tsx

Facts

Registry
shadcn/ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

agileflow.projectquestorg.com projectquestorg/AgileFlow on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 133 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionshadcn/uiComponentsFreeno deps
alertalertshadcn/uiComponentsFreeno deps
alert-dialogalert-dialogshadcn/uiComponentsFreeno deps
aspect-ratioaspect-ratioshadcn/uiComponentsFreeno deps
avataravatarshadcn/uiComponentsFreeno deps
badgebadgeshadcn/uiComponentsFreeno deps
breadcrumbbreadcrumbshadcn/uiComponentsFreeno deps
buttonbuttonshadcn/uiComponentsFreeno 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