UNPKG

@mui/base

Version:

A library of headless ('unstyled') React UI components and low-level hooks.

11 lines (10 loc) 573 B
import * as React from 'react'; import { ListAction } from './listActions.types'; import { ListItemState } from './useList.types'; export interface ListContextValue<ItemValue> { dispatch: (action: ListAction<ItemValue>) => void; getItemState: (item: ItemValue) => ListItemState; registerHighlightChangeHandler: (handler: (item: ItemValue | null) => void) => () => void; registerSelectionChangeHandler: (handler: (items: ItemValue | ItemValue[] | null) => void) => () => void; } export declare const ListContext: React.Context<ListContextValue<any> | null>;