material-you-react
Version:
Material You: Material You (M3) Design system and its components for simple integration with Next.Js or other react-based frameworks
11 lines (10 loc) • 367 B
TypeScript
export type SnackbarParams = {
action?: string;
actionCallback?: () => void;
};
export type ScaffoldHost = {
showSnackBar: (message: string, params?: SnackbarParams) => void;
openDrawer: () => void;
};
export declare const ScaffoldContext: import("react").Context<ScaffoldHost | null>;
export declare const useScaffoldHost: () => ScaffoldHost | null;