1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-23 03:54:21 +00:00
bluelib/.storybook/preview.js

58 lines
1.7 KiB
JavaScript
Raw Normal View History

2021-08-24 11:05:48 +00:00
import BluelibTheme from "./BluelibTheme"
2021-08-17 15:45:29 +00:00
2021-08-14 15:02:47 +00:00
export const parameters = {
argTypes: {
bluelibClassNames: {
2021-08-24 11:05:48 +00:00
type: "string",
control: {type: "string"},
description: "Additional Bluelib classNames to be appended to the element's classNames",
table: {category: "Global props"}
},
builtinColor: {
type: "string",
options: ["", "red", "orange", "yellow", "lime", "cyan", "blue", "magenta", "gray"],
control: {type: "select"},
description: "Apply a Bluelib builtin color to the element",
table: {category: "Global props"}
},
customColor: {
2021-08-24 11:05:48 +00:00
type: "string",
control: {type: "color"},
description: "Apply a Bluelib custom color to the element",
table: {category: "Global props"}
},
disabled: {
2021-08-24 11:05:48 +00:00
type: "boolean",
control: {type: "boolean"},
description: "Apply the disabled status to an element",
table: {category: "Global props"}
}
},
options: {
storySort: {
order: [
"Core",
"Layouts",
"Panels",
"Chapters",
"Separators",
"Images",
"Tables",
"Lists",
"Status",
"Inputs",
"Forms",
"Common",
"Annotations",
"Semantics",
"Colors",
"Internals",
]
}
2021-08-14 15:02:47 +00:00
},
2021-08-24 11:05:48 +00:00
panelPosition: "right",
docs: {
theme: BluelibTheme,
}
2021-08-14 15:02:47 +00:00
}