1
0
Fork 0
react-playground/node_modules/@mui/x-internals/ToolbarContext/ToolbarContext.d.ts
Techognito fc0f69dacb Added Statistics calculation
Statistics now show calculated values
2025-09-04 17:30:00 +02:00

14 lines
No EOL
661 B
TypeScript

import * as React from 'react';
export interface ToolbarContextValue {
focusableItemId: string | null;
registerItem: (id: string, ref: React.RefObject<HTMLButtonElement | null>) => void;
unregisterItem: (id: string) => void;
onItemKeyDown: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
onItemFocus: (id: string) => void;
onItemDisabled: (id: string, disabled: boolean) => void;
}
export declare const ToolbarContext: React.Context<ToolbarContextValue | undefined>;
export declare function useToolbarContext(): ToolbarContextValue;
export declare function ToolbarContextProvider({
children
}: React.PropsWithChildren): React.JSX.Element;