UNPKG

storybook-addon-themes

Version:

A storybook addon to switch between different themes for your preview

13 lines (9 loc) 242 B
import { ComponentType } from 'react'; import { Theme } from './Theme'; export interface DecoratorProps { theme: Theme themes: Theme[] themeClasses: string themeName: string } export type Decorator = ComponentType<DecoratorProps>;