UNPKG

513 BTypeScriptView Raw
1import { UseListItemParameters, UseListItemReturnValue } from './useListItem.types';
2/**
3 * Contains the logic for an item of a list-like component (for example Select, Menu, etc.).
4 * It handles the item's mouse events and tab index.
5 *
6 * @template ItemValue The type of the item's value. This should be consistent with the type of useList's `items` parameter.
7 * @ignore - internal hook.
8 */
9export declare function useListItem<ItemValue>(parameters: UseListItemParameters<ItemValue>): UseListItemReturnValue;