Select
Select a start and end date, perfect for booking a vacation or setting periods efficiently, streamlining the process of defining time spans with ease.
Basic
A select component displays a dropdown list of options, allowing users to pick one from the list.
Installation
If you hit any issues, make sure you check out the installation guide here.
Composed Components
When you plug this component from the CLI, it autoloads all the composed components. No need to toss 'em in one at a time.
The Select's decked out with several components to make it bangin'.
List Box
Field
Manual Installation
Sometimes, using the CLI is the way to go, so make sure you install the necessary dependencies for the components you want to use.
Anatomy
Import the components and use them as shown below, adapting the structure to fit each component.
Select Item Details
If you need to provide more information about an item, use the SelectItemDetails
component to display additional details.
Section
A select component can display items grouped together in sections.
Select with Icon
A select component can display items grouped together in sections.
Validation
If a user submits the form without selecting an item, an error message will appear.
Controlled
You can control the select component by passing the selectedKey
prop.
Uncontrolled
You can uncontrolled the select component by passing the defaultSelectedKey
prop.
Disabled
When the select component is disabled, it cannot be interacted with.