About
A styled wrapper around the native HTML select element with a custom chevron icon, size variants, and option/optgroup helpers for building accessible dropdown pickers.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Native Select to your project and fits it to your theme.
Code
How Native Select is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import {
NativeSelect,
NativeSelectOption,
} from "@/components/ui/native-select";
export default function NativeSelectSmallDemo() {
return (
<div className="flex min-h-[200px] w-full items-center justify-center bg-background p-10">
<NativeSelect size="sm" defaultValue="comfy">
<NativeSelectOption value="comfy">Comfy</NativeSelectOption>
<NativeSelectOption value="compact">Compact</NativeSelectOption>
<NativeSelectOption value="ultra">Ultra</NativeSelectOption>
</NativeSelect>
</div>
);
}
















![Form [react-aria-components]](https://cdn.21st.dev/cdn-cgi/image/fit=scale-down,width=640,quality=75,format=webp/https://cdn.21st.dev/user_jolbol1/field/814/preview.png)