UNPKG

@payfit/unity-components

Version:

16 lines (15 loc) • 803 B
import { ForwardedRef, ReactElement } from 'react'; import { Key } from 'react-aria-components/Breadcrumbs'; import { SelectListOptionProps } from '../../../../../core/components/select-list/parts/SelectListOption.js'; /** Props for one numbered answer option inside a `SelectList`. */ export interface AIStructuredInputAnswerProps extends Omit<SelectListOptionProps<object>, 'children' | 'prefixElement' | 'id'> { /** Stable, explicit identity for this answer option. */ id: Key; /** Ordinal shown in the option's leading number marker. */ number: number; /** Visible option label and accessible text value. */ children: string; } export declare const AIStructuredInputAnswer: (props: AIStructuredInputAnswerProps & { ref?: ForwardedRef<HTMLDivElement>; }) => ReactElement;