Setup a very basic storybook
This commit is contained in:
parent
8c8eef22ce
commit
045c20844f
15 changed files with 5915 additions and 391 deletions
13
.storybook/preview.js
Normal file
13
.storybook/preview.js
Normal 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}),
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue