Select
Select components allow users to pick an option from a predefined list. The Select component should be used when there are more than 5 options available. Otherwise, consider using the RadioGroup component.
Importβ
import { Select } from '@faststore/ui'
Usageβ
Loading...
Variantsβ
Disabledβ
Loading...
Multipleβ
Loading...
Default valueβ
Loading...
Propsβ
Customizationβ
data-store-select
Best practicesβ
β Do'sβ
- Consider using a
RadioGroup
when few options are available. Doing so will prevent users from opening a dropdown box just to scan how many and which options are available. - Consider using an open text
Input
when several options are available and if the entries donβt need to be validated. Doing so will prevent users from having to read and understand all options before making a choice. - Consider using an autocomplete field when multiple options are available and if the inputs need to be validated.
- Opt to grey out unavailable items instead of removing them completely.