UNPKG

@skbkontur/storybook-addon-live-examples

Version:

Storybook live examples plugin

32 lines (31 loc) 1.01 kB
import { PrismTheme } from 'prism-react-renderer'; import { ReactNode } from 'react'; import { Decorator } from '@storybook/react'; export declare const LIVE_EXAMPLES_ADDON_ID = "storybook-addon-live-examples"; export type Config = { bgColor?: string; previewBgColor?: string; borderColor?: string; borderRadius?: number; errorsBg?: string; errorsColor?: string; hintColor?: string; iconColor?: string; fontCode?: string; fontBase?: string; fontSizeCode?: number; fontSizeBase?: number; sandboxPath?: string; expandText?: string; expandIcon?: ReactNode; copyText?: string; copyIcon?: ReactNode; resetText?: string; resetIcon?: ReactNode; copiedText?: string; editorTheme?: PrismTheme; scope: Record<string, any>; decorators?: Decorator[]; }; export declare const getConfig: () => Config; export declare const configValue: <T extends keyof Config>(key: T, defaultValue: any) => Config[T];