UNPKG

@payfit/unity-components

Version:

14 lines (13 loc) 691 B
import { default as React, ReactNode } from 'react'; import { ListBoxItemProps } from 'react-aria-components/ListBox'; /** * SelectOption component for displaying options in a Select dropdown. * @note The `textValue` prop (inherited from ListBoxItemProps) is used for searching when the content * of the option is more complex than a simple string (e.g., contains components * like Avatar, Flex, etc.). Providing this prop enables search functionality * for complex content options. */ declare const SelectOption: React.ForwardRefExoticComponent<Omit<ListBoxItemProps<object>, "children"> & { children: ReactNode; } & React.RefAttributes<HTMLDivElement>>; export { SelectOption };