2023-03-11 23:41:14 +00:00
|
|
|
export const parameters = {
|
2023-03-14 16:29:14 +00:00
|
|
|
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}),
|
2023-03-11 23:41:14 +00:00
|
|
|
},
|
|
|
|
}
|