Setup a very basic storybook

This commit is contained in:
garronej
2023-04-17 00:15:41 +02:00
parent 8c8eef22ce
commit 045c20844f
15 changed files with 5915 additions and 391 deletions

13
.storybook/preview.js Normal file
View File

@ -0,0 +1,13 @@
export const parameters = {
actions: {argTypesRegex: "^on[A-Z].*"},
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
options: {
storySort: (a, b) =>
a[1].kind === b[1].kind ? 0 : a[1].id.localeCompare(b[1].id, undefined, {numeric: true}),
},
}