import type { GlobalProps } from '../../shared/global'; import type { ComponentChildren } from '../../shared/children'; import { FieldDetailsProps, FieldErrorProps, MultipleInputProps } from '../../shared/input'; export interface ChoiceListProps extends GlobalProps, MultipleInputProps, FieldDetailsProps, FieldErrorProps { /** * Whether multiple choices can be selected. * * @default false */ multiple?: boolean; /** * The choices a user can select from. * * Accepts `Choice` components. */ children?: ComponentChildren; /** * Disables the field, disallowing any interaction. * * `disabled` on any child choices is ignored when this is true. * * @default false */ disabled?: MultipleInputProps['disabled']; }