import { ReactNode } from 'react'; import { ActionListItemProps } from '../ActionList/ActionList.Item'; export interface OptionProps extends Omit { /** * Specify the value of the option. Use this to control selectedOptions or to get the option value in the onOptionSelect callback. Defaults to the text content of the option */ value?: string; /** * Specify the label of the option. Defaults to the text content of the option */ label?: string; } export interface OptionGroupProps { /** * Visible group label rendered above the group's options. Used as the source for `aria-label` on the group container. */ heading?: string | ReactNode; /** * Render a visual separator below the group. * * @default false */ divider?: boolean; /** * Disables every Option inside the group. Heading remains visible; options are non-interactive. * * @default false */ disabled?: boolean; /** * `Option` components. Nested `OptionGroup`s are not supported. */ children?: ReactNode; }