Native Select
A styled native <select> element with a custom chevron.
native-select-demo.app
Installation
terminal.sh
npx y2kui@latest add native-selectUsage
import { NativeSelect } from "@/components/ui/native-select"
<NativeSelect>
<option>Option 1</option>
<option>Option 2</option>
</NativeSelect>Props
| Prop | Type | Default | Description |
|---|---|---|---|
leadingIcon | ReactNode | — | Icon shown before the select text. |
className | string | — | Additional Tailwind classes. |
children | ReactNode | — | Option elements. |