@mantine/spotlight
Version:
Command center components for react and Mantine
16 lines (15 loc) • 615 B
TypeScript
import { GetStylesApi } from '@mantine/core';
import { SpotlightStore } from './spotlight.store';
import type { SpotlightRootFactory } from './SpotlightRoot';
interface SpotlightContextValue {
query: string;
setQuery: (query: string) => void;
getStyles: GetStylesApi<SpotlightRootFactory>;
store: SpotlightStore;
closeOnActionTrigger: boolean | undefined;
}
export declare const SpotlightProvider: ({ children, value }: {
value: SpotlightContextValue;
children: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element, useSpotlightContext: () => SpotlightContextValue;
export {};