DocSpace-client/packages/asc-web-components/.storybook/preview.js

23 lines
517 B
JavaScript

import { MINIMAL_VIEWPORTS } from "@storybook/addon-viewport";
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: { expanded: true },
viewport: {
viewports: MINIMAL_VIEWPORTS,
},
};
export const globalTypes = {
theme: {
name: "Theme",
description: "Global theme for components",
defaultValue: "light",
toolbar: {
icon: "circlehollow",
// array of plain string values or MenuItem shape (see below)
items: ["light", "dark"],
},
},
};