UNPKG

display-element-css

Version:

Click on any storybook element to see the element's type selector, class selector, and ID selector CSS styles

50 lines (47 loc) 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.globalTypes = exports.decorators = void 0; var _withCss = require("../withCss"); /** * A decorator is a way to wrap a story in extra “rendering” functionality. Many addons define decorators * in order to augment stories: * - with extra rendering * - gather details about how a story is rendered * * When writing stories, decorators are typically used to wrap stories with extra markup or context mocking. * * https://storybook.js.org/docs/react/writing-stories/decorators#gatsby-focus-wrapper */ var decorators = [_withCss.withCss]; exports.decorators = decorators; var globalTypes = { myAddon: false, theme: { name: 'Theme', description: 'Global theme for components', toolbar: { icon: 'circlehollow', title: 'Theme', items: [{ value: 'light', icon: 'circlehollow', title: 'light' }, { value: 'dark', icon: 'circle', title: 'dark' }, { value: 'side-by-side', icon: 'sidebar', title: 'side by side' }, { value: 'stacked', icon: 'bottombar', title: 'stacked' }] } } }; exports.globalTypes = globalTypes;