@project44-manifest/react
Version:
Manifest Design System react components
27 lines • 1.09 kB
TypeScript
import * as React from 'react';
import type { FocusableProps, ItemProps, Node, SelectionMode } from '@react-types/shared';
import { As, Options, Props } from '../../system';
import type { StyleProps } from '../../types';
export declare type ListBoxItemElement = 'div';
export interface ListBoxItemOptions<T extends As = ListBoxItemElement> extends Options<T>, StyleProps, FocusableProps {
/**
* Whether the item is virtualized.
*/
isVirtualized?: boolean;
/**
* Item object in the collection.
*/
item: Node<object>;
/**
* The type of selection that is allowed in the collection.
*/
selectionMode?: SelectionMode;
/**
* Icon added before the item text.
*/
startIcon?: React.ReactElement;
}
export declare type ListBoxItemProps<T extends As = ListBoxItemElement> = ItemProps<object> & Omit<Props<ListBoxItemOptions<T>>, 'isVirtualized' | 'item' | 'selectionMode'>;
/** @private */
export declare const ListBoxItem: import("../../system").Component<ListBoxItemOptions<"div">>;
//# sourceMappingURL=ListBoxItem.d.ts.map