@kadconsulting/dry
Version:
KAD Reusable Component Library
8 lines (7 loc) • 309 B
TypeScript
import type { StoryContext } from '@storybook/react';
import { ThemeTypes } from '../../components/ThemeProvider';
/**
* A utility function to infer the theme (i.e., 'light' or 'dark')
* from the Storybook background.
*/
export declare const inferThemeType: (context: StoryContext<unknown>) => ThemeTypes;