Native Select
The Native Select wraps the browser’s native <select> element with consistent styling and a custom dropdown arrow.
Basic Usage
import { NativeSel } from "@paramanu/forms-react"
export default function App() { return ( <NativeSel> <option value="">Select...</option> <option value="apple">Apple</option> <option value="banana">Banana</option> </NativeSel> )}<div class="pm-native-sel pm-native-sel--outline pm-native-sel--md"> <select class="pm-native-sel__field"> <option value="">Select...</option> <option value="apple">Apple</option> <option value="banana">Banana</option> </select> <span class="pm-native-sel__arrow" aria-hidden="true">▾</span></div>Accessibility
| Feature | Detail |
|---|---|
Native <select> | Full browser accessibility support |
| Arrow indicator | Decorative, aria-hidden="true" |
| Keyboard | Standard select keyboard behavior |
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "outline" | "filled" | "unstyled" | "outline" | Visual variant |
size | "xs" | "sm" | "md" | "lg" | "md" | Select size |
invalid | boolean | false | Invalid state |
disabled | boolean | false | Disabled state |
fullWidth | boolean | false | Full-width layout |
CSS Classes
| Class | Description |
|---|---|
pm-native-sel | Wrapper base class |
pm-native-sel__field | Native select element |
pm-native-sel__arrow | Custom arrow indicator |