Native Select
Base UIA styled native select element.
ReadyResponsive
Usage
Package export"use client"
import {
NativeSelect,
NativeSelectOption,
} from "@jnpll/elements-ui/native-select"
export default function NativeSelectDemo() {
return (
<NativeSelect>
<NativeSelectOption value="">Select status</NativeSelectOption>
<NativeSelectOption value="todo">Todo</NativeSelectOption>
<NativeSelectOption value="in-progress">In Progress</NativeSelectOption>
<NativeSelectOption value="done">Done</NativeSelectOption>
<NativeSelectOption value="cancelled">Cancelled</NativeSelectOption>
</NativeSelect>
)
}
Examples
Disabled state
API Reference
| Prop | Type / description | Default |
|---|---|---|
disabled | booleanDisables the control. | false |
value / defaultValue | stringControlled or initial input value. | - |
className | stringAdditional classes, merged with the component styles. | - |
Composition & accessibility
Import the composition slots shown in the example. Keep labels and descriptions meaningful; interactive primitives provide keyboard and focus behavior. See the source for the complete typed API.