import * as React from 'react'; import type { CommonProps, PortalProps } from '../../utils/index.js'; import { usePopover } from '../Popover/Popover.js'; /** * Select component to select value from options. * Generic type is used for value. It prevents you from mistakenly using other types in `options`, `value` and `onChange`. * @example * Basic select. * * @example * Disabled select with placeholder. * setSelectedValue(value)} * options={[{ value: 1, label: 'Option 1' }, { value: 2, label: 'Option 2' }, { value: 3, label: 'Option 3' }]} * /> * @example * Select using custom renderers for menu items and selected value. * ` element will be rendered. * * Extra props, such as `name` can be passed to the ``. */ styleType?: never; })); type NativeSelectProps = SelectCommonProps & { /** * Selected option value. * * Must be a string, because it is passed as an attribute to the native