--- title: Select sidebar_position: 8 sidebar_custom_props: icon: TbSelect --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import { SandpackEditor} from '@site/src/ui/SandpackEditor' import selectCode from '!!raw-loader!@site/src/ui/input/components/selectCode.js' Allows users to pick a value from a list of predefined options.
Props Type Description
className string Optional CSS class for additional styling
disabled boolean When set to `true`, disables user interaction with the component
dropdownScopeId string Required prop that uniquely identifies the dropdown scope
label string The label to describe the purpose of the `Select` component
onChange function The function called when the selected values change
options array Represents the options available for the `Selected` component. It's an array of objects where each object has a `value` (the unique identifier), `label` (the unique identifier), and an optional `Icon`
value string Represents the currently selected value. It should match one of the `value` properties in the `options` array