Skip to content
loseta

Components / Forms

Native Select

A styled native select element.

Status stableWorks with field, label
<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-select
npx loseta add native-select

Accessibility and behavior

  • .native-select is the native select root. The custom Select is a separate component with its own install.

Files

components/native-select.cssbase
styles/nova/native-select.cssstyle

Install 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.

← Back to components

loseta is MIT licensed. Built with native CSS, no runtime. Inspired byshadcn/ui.