UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

16 lines (15 loc) • 689 B
import type { CommandSource, UseCommandReturn } from "./use-command"; export interface UseCommandContext extends UseCommandReturn { } export declare const CommandContextProvider: import("react").Provider<UseCommandContext>, useCommandContext: () => UseCommandContext; export interface CommandProviderContext { /** * The value passed to `Command.Provider`. */ value: CommandSource<any>; /** * The id that labels the command, e.g. the dialog title. */ labelId: string; } export declare const CommandProviderContextProvider: import("react").Provider<CommandProviderContext | undefined>, useCommandProviderContext: () => CommandProviderContext | undefined;