Directory
- Welcome
Select Native Component
The Select Native component provides a styled native select element for forms, offering the perfect balance between customization and native functionality. Built with accessibility in mind, it includes support for labels, required fields, and various sizes.
Key Features
-
Native Functionality: Uses the browser’s native select behavior
-
Custom Styling: Tailwind-based design system integration
-
Accessibility: Built-in ARIA support and keyboard navigation
-
Form Integration: Seamless form data handling
Limitations
- The Select Native component does not support multiple selection.
- The Select Native component does not support custom icons.
- The Select Native component does not support significant custom styling of the options.
If these are an issue, please consider using the Select component instead. It offers more flexibility and customization options.
Basic Usage
Create a simple select dropdown:
<Select options={[ { value: "option1", title: "First Option" }, { value: "option2", title: "Second Option" }, { value: "option3", title: "Third Option" } ]}/>
Variants
Size Options
Required Fields
Disabled Options
Props API
Prop | Type | Default | Description |
---|---|---|---|
label | string | Label text for the select | |
options | Option[] | [] | Array of selectable options |
selectSize | sm | md | default | lg | default | Size variant |
variant | default | default | Visual style variant |
Limited Time Launch Sale
Build better forms with our native Select component.
GET 60% OFF!