UNPKG

@fluentui/react-northstar

Version:
18 lines (17 loc) 851 B
import { ComponentVariablesInput } from '@fluentui/styles'; import * as React from 'react'; export declare type ListContextValue = { debug: boolean; selectable: boolean; navigable: boolean; truncateContent: boolean; truncateHeader: boolean; variables: ComponentVariablesInput; onItemClick: (e: React.KeyboardEvent | React.MouseEvent, itemIndex: number) => void; selectedIndex: number; }; export declare type ListContextSubscribedValue = Pick<ListContextValue, 'debug' | 'selectable' | 'navigable' | 'truncateContent' | 'truncateHeader' | 'variables' | 'onItemClick'> & { selected: boolean; }; export declare const ListContext: import("@fluentui/react-bindings").Context<ListContextValue>; export declare const ListContextProvider: React.Provider<ListContextValue> & React.FC<React.ProviderProps<ListContextValue>>;