@ljcl/storybook-addon-cssprops
Version:
Interact with css custom properties dynamically in the Storybook UI
32 lines (26 loc) • 887 B
TypeScript
import * as storybook_internal_csf from 'storybook/internal/csf';
import * as React from 'react';
import { DocsContext } from '@storybook/addon-docs/blocks';
declare const PARAM_KEY: "cssprops";
declare const ADDON_ID: "addon-cssprops";
interface CssPropertyItem {
control?: "text" | "color";
value: string;
description?: string;
category?: string;
subcategory?: string;
}
interface CssPropertyItemGroup {
[cssCustomPropertyKey: string]: CssPropertyItem;
}
interface CssPropsBlockProps {
customProperties?: CssPropertyItemGroup;
}
declare global {
interface Window {
__DOCS_CONTEXT__: typeof DocsContext;
}
}
declare const CssPropsBlock: React.FC<CssPropsBlockProps>;
declare const _default: () => storybook_internal_csf.PreviewAddon<storybook_internal_csf.AddonTypes>;
export { ADDON_ID, CssPropsBlock, PARAM_KEY, _default as default };