## Select Select enables users to select an option in a dropdown. Category: Combobox > Need users to select multiple items? See `MultiSelect`. Need users to type their own options? See `TagsInput` or `Autocomplete` ### Made with Combobox `Select` is built on top of [Combobox](https://mantine.dev/core/combobox/) and covers common use cases. If you need more advanced behavior or want to extend its functionality, you can create your own custom `Select` component. See this [GitHub repository](https://github.com/AnnMarieW/dmc_custom_components) for custom DMC component examples. ### Simple Example `Select` component allows user to pick one option from the given data. Unlike `Autocomplete`, `Select` does not allow entering custom values. ```python import dash_mantine_components as dmc from dash import Output, Input, html, callback component = html.Div( [ dmc.Select( label="Select your favorite library", placeholder="Select one", id="framework-select", value="pd", data=[ {"value": "pd", "label": "Pandas"}, {"value": "np", "label": "NumPy"}, {"value": "tf", "label": "TensorFlow"}, {"value": "torch", "label": "PyTorch"}, ], w=200, mb=10, ), dmc.Text(id="selected-value"), ] ) @callback(Output("selected-value", "children"), Input("framework-select", "value")) def select_value(value): return f" You selected {value}" ``` ### Data Format The data can be provided as either: * an array of strings - use when label and value are same. * an array of dicts with `label` and `value` properties. * an array of dict with `group` and `items` as keys where items are one of the previous two types. ```python data = ["Pandas", "NumPy", "TensorFlow", "PyTorch"] # or data = [ {"value": "Pandas", "label": "Pandas"}, {"value": "NumPy", "label": "NumPy"}, {"value": "TensorFlow", "label": "TensorFlow"}, {"value": "PyTorch", "label": "PyTorch"}, ] # or data = [ {"group": "Data Analysis", "items": ["Pandas", "NumPy"]}, {"group": "Deep Learning", "items": ["TensorFlow", "Pytorch"]} ] # or data = [ { "group": "Data Analysis", "items": [ {"value": "Pandas", "label": "Pandas"}, {"value": "NumPy", "label": "NumPy"}, ], }, { "group": "Deep Learning", "items": [ {"value": "TensorFlow", "label": "TensorFlow"}, {"value": "PyTorch", "label": "PyTorch"}, ], }, ] ``` ### autoSelectOnBlur Set `autoSelectOnBlur=True` to automatically select the highlighted option when the input loses focus. To see this feature in action: select an option with up/down arrows, then click outside the input: ```python import dash_mantine_components as dmc component = dmc.Select( label="Your favorite library:", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], placeholder="Pick value", autoSelectOnBlur=True, w=400, ) ``` ### Searchable Set `searchable=True` to allow filtering options by user input. ```python import dash_mantine_components as dmc component = dmc.Select( data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], searchable=True, w=200, ) ``` ### clearSearchOnFocus When `clearSearchOnFocus=True` and the `Select` is in searchable mode, the search input will be cleared each time the field gains focus. This is useful when you want the user to start with an empty search box each time, without having to manually delete the existing text. ```python import dash_mantine_components as dmc component = dmc.Select( data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], value="Pandas", searchable=True, clearSearchOnFocus=True, ) ``` ### Nothing Found Set the `nothingFoundMessage` prop to display a given message when no options match the search query or there is no data available. If the `nothingFoundMessage` prop is not set, the `MultiSelect` dropdown will be hidden. ```python import dash_mantine_components as dmc component = dmc.Select( label="Pick your favorite library", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], searchable=True, nothingFoundMessage="Nothing found...", w=400, ) ``` ### Checked option icon Set `checkIconPosition` prop to left or right to control position of check icon in active option. To remove the check icon, set `withCheckIcon=False`. ```python import dash_mantine_components as dmc component = dmc.Select( label="Control check icon", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], value="NumPy", checkIconPosition="right", dropdownOpened=True, comboboxProps={"withinPortal":False}, w=200, pb=150, id="select-check-icon", ) ``` ### Clearable Set `clearable` prop to enable clearing selected values. ```python import dash_mantine_components as dmc component = dmc.Select( data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], value="Pandas", clearable=True, w=200, ) ``` ### Allow deselect `allowDeselect` prop determines whether the value should be deselected when user clicks on the selected option. By default, `allowDeselect` is True: ```python import dash_mantine_components as dmc component = dmc.Paper( [ dmc.Select( label="Option cannot be deselected", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], placeholder="Pick value", value="Pandas", allowDeselect=False, w=400, ), dmc.Select( label="Option can be deselected", description="This is the default behavior, click 'Pandas' in the dropdown", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], placeholder="Pick value", value="Pandas", allowDeselect=True, w=400, mt="md", ), ] ) ``` ### Large Data Sets The best strategy for large data sets is to limit the number of options that are rendered at the same time. You can do it with limit prop. Note that if you use a custom `filter` function, you need to implement your own logic to limit the number of options in filter Example of `Select` with 100 000 options, 10 options are rendered at the same time: ```python import dash_mantine_components as dmc component = dmc.Select( label="100,000 options", data=[f"Option {i}" for i in range(100000)], placeholder="use limit to optimize performance", limit=10, searchable=True, w=400, ) ``` ### renderOption `renderOption` function allows you to customize option rendering. Note: This example uses custom JavaScript defined in the assets folder. Learn more in the "Functions As Props" section of this document. ```python import dash_mantine_components as dmc from dash_iconify import DashIconify component = ([ dmc.Select( label="Select with renderOption", placeholder="Select text align", data=[ { "value": 'left', "label": 'Left' }, { "value": 'center', "label": 'Center' }, { "value": 'right', "label": 'Right' }, { "value": 'justify', "label": 'Justify' }, ], renderOption={"function": "renderOptionSelect"} ) ]) ``` ```javascript var dmcfuncs = window.dashMantineFunctions = window.dashMantineFunctions || {}; var dmc = window.dash_mantine_components; var iconify = window.dash_iconify; dmcfuncs.renderOptionSelect = function ({ option, checked }) { const icons = { left: React.createElement(iconify.DashIconify, { icon: "mdi:format-align-left", width: 24 }), center: React.createElement(iconify.DashIconify, { icon: "mdi:format-align-center", width: 24 }), right: React.createElement(iconify.DashIconify, { icon: "mdi:format-align-right", width: 24 }), justify: React.createElement(iconify.DashIconify, { icon: "mdi:format-align-justify", width: 24 }), }; const checkedIcon = React.createElement(iconify.DashIconify, { icon: "mdi:check", width: 24, }); return React.createElement( dmc.Group, { flex: "1", gap: "xs" }, icons[option.value], option.label, checked ? checkedIcon : null ); }; ``` ### Options filtering By default, `Select` filters options by checking if the option label contains input value. You can change this behavior with `filter`. The filter function receives an object with the following properties as a single argument: - `options` – array of options or options groups, all options are in `{ value: string; label: string; disabled?: boolean }` format - `search` – current search query - `limit` – value of limit prop passed to `Select` Note: This example uses custom JavaScript defined in the assets folder. Learn more in the "Functions As Props" section of this document. Example of a custom filter function that matches options by words instead of letters sequence: ```python import dash_mantine_components as dmc component = dmc.Select( label="Your country", placeholder="Pick value", searchable=True, data=[ "Great Britain", "Canada", "United States", ], filter={"function": "filterCountries"}, ) ``` ```javascript var dmcfuncs = window.dashMantineFunctions = window.dashMantineFunctions || {}; dmcfuncs.filterCountries = function ({ options, search }) { const queryWords = search.toLowerCase().trim().split(" "); return options.filter((option) => { const words = option.label.toLowerCase().trim().split(" "); return queryWords.every((word) => words.some((labelWord) => labelWord.includes(word)) ); }); }; ``` ### Sort options By default, options are sorted by their position in the data array. You can change this behavior with `filter` function: Note: This example uses custom JavaScript defined in the assets folder. Learn more in the "Functions As Props" section of this document. ```python import dash_mantine_components as dmc component = dmc.Select( label="Your favorite Python library", placeholder="Pick value", searchable=True, nothingFoundMessage="Nothing found...", data=[ "4 – NumPy", "1 – Pandas", "3 – Scikit-learn", "2 – Plotly", ], filter={"function": "filterPythonLibs"}, ) ``` ```javascript var dmcfuncs = window.dashMantineFunctions = window.dashMantineFunctions || {}; dmcfuncs.filterPythonLibs = function ({ options, search }) { const query = search.toLowerCase().trim(); const result = options.filter((option) => option.label.toLowerCase().trim().includes(query) ); result.sort((a, b) => a.label.localeCompare(b.label)); return result; }; ``` ### Scrollable dropdown By default, the options list is wrapped with `ScrollArea.Autosize`. You can control dropdown max-height with `maxDropdownHeight` prop if you do not change the default settings. If you want to use native scrollbars, set `withScrollArea=False`. Note that in this case, you will need to change dropdown styles with `Styles API`. ```python import dash_mantine_components as dmc component = dmc.Paper( [ dmc.Select( label="Scrollable dropdown", data=[f"Option {i}" for i in range(100)], placeholder="Pick value", maxDropdownHeight=300, w=400, ), dmc.Select( label="With native scroll", data=[f"Option {i}" for i in range(100)], placeholder="Pick value", withScrollArea=False, styles={"dropdown": {"maxHeight": 200, "overflowY": "auto"}}, w=400, mt="md", ), ] ) ``` ### Grouping Items ```python import dash_mantine_components as dmc component = dmc.Select( data=[ { "group": "Data Analysis", "items": [ {"value": "Pandas", "label": "Pandas"}, {"value": "NumPy", "label": "NumPy"}, ], }, { "group": "Deep Learning", "items": [ {"value": "TensorFlow", "label": "TensorFlow"}, {"value": "PyTorch", "label": "PyTorch"}, ], }, ], w=400, ) ``` ### Combobox props You can override `Combobox` props with `comboboxProps`. It is useful when you need to change some of the props that are not exposed by `Select`, for example `withinPortal`: ```python dmc.Select(comboboxProps={"withinPortal": False}) ``` ### Change dropdown z-index ```python dmc.Select(comboboxProps={"zIndex": 1000}) ``` ### Inside Popover To use `Select` inside popover, you need to set `withinPortal=False`: ```python import dash_mantine_components as dmc component = dmc.Popover( width=300, position="bottom", withArrow=True, shadow="md", children=[ dmc.PopoverTarget(dmc.Button("Toggle Popover")), dmc.PopoverDropdown( dmc.Select( label="Your favorite library", placeholder="Pick value", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], comboboxProps={"withinPortal": False}, ) ), ], ) ``` ### Dropdown open in a callback ```python import dash_mantine_components as dmc from dash import Output, Input, html, callback component = html.Div( [ dmc.Button("Toggle dropdown", id="btn-select-opened", n_clicks=0), dmc.Select( label="Select your favorite library", placeholder="Select value", id="select-opened", value="pd", data=[ {"value": "pd", "label": "Pandas"}, {"value": "np", "label": "NumPy"}, {"value": "tf", "label": "TensorFlow"}, {"value": "torch", "label": "PyTorch"}, ], comboboxProps={"position": "bottom", "middlewares": {"flip": False, "shift": False}}, w=400, mb=10, ), ] ) @callback( Output("select-opened", "dropdownOpened"), Input("btn-select-opened", "n_clicks") ) def select_value(n): if n % 2 == 0: return False return True ``` ### Dropdown position By default, the dropdown is displayed below the input if there is enough space; otherwise it is displayed above the input. You can change this behavior by setting `position` and `middlewares` props, which are passed down to the underlying `Popover` component. Example of dropdown that is always displayed above the input: ```python import dash_mantine_components as dmc component = dmc.Select( label="Your favorite library", placeholder="Pick value", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], comboboxProps={"position": "top", "middlewares": {"flip": False, "shift": False}}, ) ``` ### Dropdown width To change dropdown width, set `width` prop in `comboboxProps`. By default, dropdown width is equal to the input width. ```python import dash_mantine_components as dmc component = dmc.Select( label="Your favorite library", placeholder="Pick value", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], comboboxProps={"position": "bottom-start", "width": 200}, ) ``` ### Dropdown offset To change dropdown offset, set `offset` prop in `comboboxProps`: ```python import dash_mantine_components as dmc component = dmc.Select( label="Your favorite library", placeholder="Pick value", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], comboboxProps={ "position": "bottom", "middlewares": {"flip": False, "shift": False}, "offset": 0, }, ) ``` ### Dropdown animation By default, dropdown animations are disabled. To enable them, you can set `transitionProps`, which will be passed down to the underlying `Transition` component. ```python import dash_mantine_components as dmc component = dmc.Select( label="Your favorite library", placeholder="Pick values", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], comboboxProps={"transitionProps": {"transition": "pop", "duration": 200}}, ) ``` ### Dropdown padding ```python import dash_mantine_components as dmc component = dmc.Paper( [ dmc.Select( label="Zero padding", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], placeholder="Pick value", comboboxProps={"dropdownPadding": 0}, w=400, ), dmc.Select( label="10px padding", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], placeholder="Pick value", comboboxProps={"dropdownPadding": 10}, w=400, mt="md", ), ] ) ``` ### Dropdown shadow ```python import dash_mantine_components as dmc component = dmc.Select( label="Your favorite library", placeholder="Pick value", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], comboboxProps={"shadow": "md"}, ) ``` ### Left and right sections `Select` supports `leftSection` and `rightSection` props. These sections are rendered with absolute position inside the input wrapper. You can use them to display icons, input controls or any other elements. You can use the following props to control sections styles and content: - `rightSection`/`leftSection` – component to render on the corresponding side of input - `rightSectionWidth`/`leftSectionWidth` – controls width of the right section and padding on the corresponding side of the input. By default, it is controlled by component size prop. - `rightSectionPointerEvents`/`leftSectionPointerEvents` – controls pointer-events property of the section. If you want to render a non-interactive element, set it to none to pass clicks through to the input. ```python import dash_mantine_components as dmc from dash_iconify import DashIconify component = dmc.Paper( [ dmc.Select( label="Your favorite library", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], placeholder="Pick values", leftSectionPointerEvents="none", leftSection=DashIconify(icon="bi-book"), w=400, ), dmc.Select( label="Your favorite library", data=["Pandas", "NumPy", "TensorFlow", "PyTorch"], placeholder="Pick values", rightSectionPointerEvents="none", rightSection=DashIconify(icon="bi-book"), w=400, mt="md", ), ] ) ``` ### Input Props `Select` component supports `Input` and Input Wrapper components features and all input element props. `Select` documentation does not include all features supported by the component – see Input documentation to learn about all available features. ### Invalid State And Error Note: Dash adds some css by default which can lead you to see a red box when setting the `required` or `error` prop to True. Use the below css snippet to counteract it. ```css input:invalid { outline: none !important; } ``` You can let the user know if the selected value is invalid. In the example below, you will get an error message if you select less than 2 currency pairs. ```python import dash_mantine_components as dmc from dash import Output, Input, callback component = dmc.Select( data=["USDINR", "EURUSD", "USDTWD", "USDJPY"], id="select-error", value="USDJPY", w=200, ) @callback(Output("select-error", "error"), Input("select-error", "value")) def select_value(value): return "JPY is not allowed!" if value == "USDJPY" else "" ``` ### Styles API This component supports Styles API. With Styles API, you can customize styles of any inner element. See the Styling and Theming sections of these docs for more information. | Name | Static selector | Description | |:------------|:----------------------------|:-------------------------------------------------| | wrapper | .mantine-Select-wrapper | Root element of the Input | | input | .mantine-Select-input | Input element | | section | .mantine-Select-section | Left and right sections | | root | .mantine-Select-root | Root element | | label | .mantine-Select-label | Label element | | required | .mantine-Select-required | Required asterisk element, rendered inside label | | description | .mantine-Select-description | Description element | | error | .mantine-Select-error | Error element | | dropdown | .mantine-Select-dropdown | Dropdown root element | | options | .mantine-Select-options | Options wrapper | | option | .mantine-Select-option | Option | | empty | .mantine-Select-empty | Nothing found message | | group | .mantine-Select-group | Options group wrapper | | groupLabel | .mantine-Select-groupLabel | Options group label | ### Keyword Arguments #### Select - id (string; optional): Unique ID to identify this component in Dash callbacks. - allowDeselect (boolean; optional): Determines whether it should be possible to deselect value by clicking on the selected option, `True` by default. - aria-* (string; optional): Wild card aria attributes. - attributes (boolean | number | string | dict | list; optional): Passes attributes to inner elements of a component. See Styles API docs. - autoSelectOnBlur (boolean; optional): If set, the highlighted option is selected when the input loses focus. default `False`. - checkIconPosition (a value equal to: 'left', 'right'; optional): Position of the check icon relative to the option label, `'left'` by default. - className (string; optional): Class added to the root element, if applicable. - classNames (dict; optional): Adds custom CSS class names to inner elements of a component. See Styles API docs. - clearButtonProps (dict; optional): Props passed down to the clear button. `clearButtonProps` is a dict with keys: - clearSearchOnFocus (boolean; default False): Clears search value when dropdown is opened. Ignored if searchable=False. - clearable (boolean; optional): Determines whether the clear button should be displayed in the right section when the component has value, `False` by default. - comboboxProps (dict; optional): Props passed down to `Combobox` component. `comboboxProps` is a dict with keys: - darkHidden (boolean; optional): Determines whether component should be hidden in dark color scheme with `display: none`. - data (list of strings; optional): Data used to generate options. - data-* (string; optional): Wild card data attributes. - debounce (number | boolean; default False): (boolean | number; default False): If True, changes to input will be sent back to the Dash server only on enter or when losing focus. If it's False, it will send the value back on every change. If a number, it will not send anything back to the Dash server until the user has stopped typing for that number of milliseconds. - description (a list of or a singular dash component, string or number; optional): Contents of `Input.Description` component. If not set, description is not rendered. - descriptionProps (dict with strings as keys and values of type boolean | number | string | dict | list; optional): Props passed down to the `Input.Description` component. - disabled (boolean; optional): Sets `disabled` attribute on the `input` element. - dropdownOpened (boolean; optional): Controlled dropdown opened state. - error (a list of or a singular dash component, string or number; optional): Contents of `Input.Error` component. If not set, error is not rendered. - errorProps (dict with strings as keys and values of type boolean | number | string | dict | list; optional): Props passed down to the `Input.Error` component. - filter (boolean | number | string | dict | list; optional): A Function based on which items are filtered and sorted. See https://www.dash-mantine-components.com/functions-as-props. - hiddenFrom (string; optional): Breakpoint above which the component is hidden with `display: none`. - hiddenInputProps (dict; optional): Props passed down to the hidden input. - inputProps (dict with strings as keys and values of type boolean | number | string | dict | list; optional): Props passed down to the `Input` component. - inputWrapperOrder (list of a value equal to: 'label', 'description', 'error', 'input's; optional): Controls order of the elements, `['label', 'description', 'input', 'error']` by default. - label (a list of or a singular dash component, string or number; optional): Contents of `Input.Label` component. If not set, label is not rendered. - labelProps (dict with strings as keys and values of type boolean | number | string | dict | list; optional): Props passed down to the `Input.Label` component. - leftSection (a list of or a singular dash component, string or number; optional): Content section rendered on the left side of the input. - leftSectionPointerEvents (a value equal to: 'auto', '-moz-initial', 'inherit', 'initial', 'revert', 'revert-layer', 'unset', 'none', 'all', 'fill', 'painted', 'stroke', 'visible', 'visibleFill', 'visiblePainted', 'visibleStroke'; optional): Sets `pointer-events` styles on the `leftSection` element, `'none'` by default. - leftSectionProps (dict; optional): Props passed down to the `leftSection` element. - leftSectionWidth (string | number; optional): Left section width, used to set `width` of the section and input `padding-left`, by default equals to the input height. - lightHidden (boolean; optional): Determines whether component should be hidden in light color scheme with `display: none`. - limit (number; optional): Maximum number of options displayed at a time, `Infinity` by default. - loading_state (dict; optional): Object that holds the loading state object coming from dash-renderer. For use with dash<3. `loading_state` is a dict with keys: - maxDropdownHeight (string | number; optional): `max-height` of the dropdown, only applicable when `withScrollArea` prop is `True`, `250` by default. - mod (string | dict | list of string | dicts; optional): Element modifiers transformed into `data-` attributes. For example: "xl" or {"data-size": "xl"}. Can also be a list of strings or dicts for multiple modifiers. Falsy values are removed. - n_blur (number; default 0): An integer that represents the number of times that this element has lost focus. - n_submit (number; default 0): An integer that represents the number of times that this element has been submitted. - name (string; optional): Name prop. - nothingFoundMessage (a list of or a singular dash component, string or number; optional): Message displayed when no option matched current search query, only applicable when `searchable` prop is set. - openOnFocus (boolean; optional): If set, the dropdown opens when the input receives focus default `True`. - persisted_props (list of strings; optional): Properties whose user interactions will persist after refreshing the component or the page. Since only `value` is allowed this prop can normally be ignored. - persistence (string | number | boolean; optional): Used to allow user interactions in this component to be persisted when the component - or the page - is refreshed. If `persisted` is truthy and hasn't changed from its previous value, a `value` that the user has changed while using the app will keep that change, as long as the new `value` also matches what was given originally. Used in conjunction with `persistence_type`. Note: The component must have an `id` for persistence to work. - persistence_type (a value equal to: 'local', 'session', 'memory'; optional): Where persisted user changes will be stored: memory: only kept in memory, reset on page refresh. local: window.localStorage, data is kept after the browser quit. session: window.sessionStorage, data is cleared once the browser quit. - placeholder (string; optional): Placeholder. - pointer (boolean; optional): Determines whether the input should have `cursor: pointer` style, `False` by default. - radius (number; optional): Key of `theme.radius` or any valid CSS value to set `border-radius`, numbers are converted to rem, `theme.defaultRadius` by default. - readOnly (boolean; optional): Readonly. - renderOption (boolean | number | string | dict | list; optional): A function to render content of the option, replaces the default content of the option. See https://www.dash-mantine-components.com/functions-as-props. - required (boolean; optional): Adds required attribute to the input and a red asterisk on the right side of label, `False` by default. - rightSection (a list of or a singular dash component, string or number; optional): Content section rendered on the right side of the input. - rightSectionPointerEvents (a value equal to: 'auto', '-moz-initial', 'inherit', 'initial', 'revert', 'revert-layer', 'unset', 'none', 'all', 'fill', 'painted', 'stroke', 'visible', 'visibleFill', 'visiblePainted', 'visibleStroke'; optional): Sets `pointer-events` styles on the `rightSection` element, `'none'` by default. - rightSectionProps (dict; optional): Props passed down to the `rightSection` element. - rightSectionWidth (string | number; optional): Right section width, used to set `width` of the section and input `padding-right`, by default equals to the input height. - scrollAreaProps (dict; optional): Props passed down to the underlying `ScrollArea` component in the dropdown. `scrollAreaProps` is a dict with keys: - searchValue (string; optional): Controlled search value. - searchable (boolean; optional): Determines whether the select should be searchable, `False` by default. - selectFirstOptionOnChange (boolean; optional): Determines whether the first option should be selected when value changes, `False` by default. - selectFirstOptionOnDropdownOpen (boolean; optional): If set, the first option is selected when dropdown opens, `False` by default. - size (optional): Controls input `height` and horizontal `padding`, `'sm'` by default. - styles (boolean | number | string | dict | list; optional): Adds inline styles directly to inner elements of a component. See Styles API docs. - tabIndex (number; optional): tab-index. - value (string; optional): Controlled component value. - variant (string; optional): variant. - visibleFrom (string; optional): Breakpoint below which the component is hidden with `display: none`. - withAlignedLabels (boolean; optional): If set, unchecked labels are aligned with the checked one @,default,`False`. - withAsterisk (boolean; optional): Determines whether the required asterisk should be displayed. Overrides `required` prop. Does not add required attribute to the input. `False` by default. - withCheckIcon (boolean; optional): Determines whether check icon should be displayed near the selected option label, `True` by default. - withErrorStyles (boolean; optional): Determines whether the input should have red border and red text color when the `error` prop is set, `True` by default. - withScrollArea (boolean; optional): Determines whether the options should be wrapped with `ScrollArea.AutoSize`, `True` by default. - wrapperProps (dict with strings as keys and values of type boolean | number | string | dict | list; optional): Props passed down to the root element.