A select displays a collapsible list of options and allows a user to select one of them.
Name | Type | Default | Description |
---|---|---|---|
label | string | The label for the select input. | |
description | string | A description providing additional information about the select. | |
errorMessage | string | An error message to display if the select value is invalid. | |
className | string | Additional classes to apply for custom styling. |
Name | Type | Default | Description |
---|---|---|---|
items | any[] | The list of items to be displayed in the dropdown. | |
className | string | Additional classes to apply for custom styling. |
Name | Type | Default | Description |
---|---|---|---|
className | string | Additional classes to apply for custom styling. | |
children | React.ReactNode | The content to display within the item. |
Name | Type | Default | Description |
---|---|---|---|
className | string | Additional classes to apply for custom styling. | |
children | React.ReactNode | The content to display within the header. |
Name | Type | Default | Description |
---|---|---|---|
className | string | Additional classes to apply for custom styling. |
Checkout the documentation of React Aria Select for more information.