Components / Forms
Native Select
A styled native select element.
<div class="field">
<label class="label" for="demo-select">Framework</label>
<select class="native-select" id="demo-select">
<option>Next.js</option>
<option>Astro</option>
<option>SvelteKit</option>
<option>Nuxt</option>
</select>
</div>Installation
pnpm dlx loseta add native-selectnpx loseta add native-selectAccessibility and behavior
- .native-select is the native select root. The custom Select is a separate component with its own install.
Files
components/native-select.cssbasestyles/nova/native-select.cssstyleInstall contract
The CLI writes the base file under components/, the visual file for the selected style under styles/<name>/, and any primitive dependency underprimitives/. The generated index.css imports them in the right layer order.