@cerberus-design/react
Version:
The Cerberus Design React component library.
23 lines (22 loc) • 875 B
text/typescript
import { SelectItemProps } from './primitives';
import { SelectCollectionItem } from './select';
/**
* This module contains the Option component for the Select dropdown.
* @module 'react/select/option'
*/
export interface OptionProps extends SelectItemProps {
/**
* The CollectionListItem to be displayed in the dropdown list.
*/
item: SelectCollectionItem;
}
/**
* The Option component is used to render an individual item in the Select
* dropdown. It is an abstraction of the Select Item, ItemText, and
* ItemIndicator primitives that also displays a Checked icon when the item is
* selected.
*
* @definition [Select docs](https://cerberus.digitalu.design/react/select/dev)
* @definition [ARK docs](https://ark-ui.com/react/docs/components/select)
*/
export declare function Option(props: OptionProps): import("react/jsx-runtime").JSX.Element;