add Button component and Storybook configuration
Some checks failed
CI TEST (Vault secrets) / build (push) Failing after 9s
Some checks failed
CI TEST (Vault secrets) / build (push) Failing after 9s
This commit is contained in:
22
.storybook/preview.js
Normal file
22
.storybook/preview.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import "./preview.css";
|
||||
import { INITIAL_VIEWPORTS } from "storybook/viewport";
|
||||
import { CUSTOM_VIEW_PORTS } from "./constants.ts";
|
||||
|
||||
const preview = {
|
||||
parameters: {
|
||||
controls: {
|
||||
matchers: {
|
||||
color: /(background|color)$/i,
|
||||
date: /Date$/i,
|
||||
},
|
||||
},
|
||||
backgrounds: {
|
||||
default: "darky",
|
||||
values: [{ name: "darky", value: "#0b121a" }],
|
||||
},
|
||||
viewport: {
|
||||
options: { ...CUSTOM_VIEW_PORTS, ...INITIAL_VIEWPORTS },
|
||||
},
|
||||
},
|
||||
};
|
||||
export default preview;
|
||||
Reference in New Issue
Block a user