Dropdown Select
Dropdown Select components are used for collecting user provided information from a list of options.
Import
Single Select
Select
- Grapes
- Mango
- Strawberry
Multi Select
- Grapes
- Mango
- Strawberry
Props
Prop | Description | Type | Default |
---|---|---|---|
className | className for the component | string | |
options | Options for the select (is required) | array | |
value | pre-selected option ListboxSelect (is required) | { label:, value: } [{ label:, value: }] | |
label | Label for dropdown | string | |
floatingLabel | floatingLabel | boolean | false |
placeholder | placeholder for the dropdown | string | |
size | Size of the dropdown: "base", "sm", "md", "lg" | string | base |
color | Color of the dropdown | string | theme.colors.grey |
focusColor | Color of the dropdown | string | theme.colors.primary |
closeOnChange | Whether the dropdown closes when a selection is made. | boolean | false |
disabled | boolean | false | |
required | boolean | false | |
readOnly | boolean | false | |
multiple | Render the Multi Select Dropdown | boolean | false |
variant | Variant of the dropdown: "outline", "filled" | string | outline |
width | Width of the dropdown | string |