2021-03-07 11:57:26 +00:00
|
|
|
import { MINIMAL_VIEWPORTS } from "@storybook/addon-viewport";
|
|
|
|
|
2021-03-01 14:35:38 +00:00
|
|
|
export const parameters = {
|
|
|
|
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
|
|
controls: { expanded: true },
|
2021-03-07 11:57:26 +00:00
|
|
|
viewport: {
|
|
|
|
viewports: MINIMAL_VIEWPORTS,
|
|
|
|
},
|
2021-03-01 14:35:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|