The browser's own select, styled to match Input, with a quiet placeholder, Field support and the OS picker on every device.
Install
Add it to your project
Run this in a project set up for shadcn/ui. It writes the files and installs the npm packages.
First time: connect the Infinity UI registry
- Create a personal token on your Tokens page.
- Put it in
.env.localasINFINITYUI_TOKEN. - Add the registry to
components.json:
{
"registries": {
"@infinityui": {
"url": "https://infinityui.io/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INFINITYUI_TOKEN}"
}
}
}
}Using Claude Code, Codex, Cursor, Lovable or v0? See CLI & MCP for a setup prompt.
npm packages it adds
- cn
- @base-ui/react
- @tabler/icons-react
Code
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
import { NativeSelect, NativeSelectOption } from "@/components/ui/native-select"
export function NativeSelectDemo() {
return (
<div className="grid w-full max-w-sm gap-4">
<div className="flex flex-col gap-2">
<Label htmlFor="native-select-demo-name">Project name</Label>
<Input id="native-select-demo-name" defaultValue="HextaUI" />
</div>
<div className="flex flex-col gap-2">
<Label htmlFor="native-select-demo-framework">Framework</Label>
<NativeSelect id="native-select-demo-framework" className="w-full">
<NativeSelectOption value="">Select a framework</NativeSelectOption>
<NativeSelectOption value="next">Next.js</NativeSelectOption>
<NativeSelectOption value="remix">Remix</NativeSelectOption>
<NativeSelectOption value="astro">Astro</NativeSelectOption>
<NativeSelectOption value="vite">Vite</NativeSelectOption>
</NativeSelect>
</div>
</div>
)
}
































