mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
parent
be7bbeda03
commit
e2c39def42
2 changed files with 66 additions and 32 deletions
|
@ -1,4 +1,4 @@
|
|||
import { withKnobs, array, boolean } from "@storybook/addon-knobs";
|
||||
import { withKnobs, array, boolean, number } from "@storybook/addon-knobs";
|
||||
import Component from "./DataTableSkeleton.Story.svelte";
|
||||
|
||||
export default { title: "DataTableSkeleton", decorators: [withKnobs] };
|
||||
|
@ -6,12 +6,16 @@ export default { title: "DataTableSkeleton", decorators: [withKnobs] };
|
|||
export const Default = () => ({
|
||||
Component,
|
||||
props: {
|
||||
columns: number("Number of columns", 5),
|
||||
rows: number("Number of rows", 5),
|
||||
zebra: boolean("Use zebra stripe (zebra)", false),
|
||||
compact: boolean("Compact variant (compact)", false),
|
||||
showHeader: boolean("Show header", true),
|
||||
headers: array(
|
||||
"Optional table headers (headers)",
|
||||
["Name", "Protocol", "Port", "Rule", "Attached Groups"],
|
||||
","
|
||||
),
|
||||
zebra: boolean("Use zebra stripe (zebra)", false),
|
||||
compact: boolean("Compact variant (compact)", false),
|
||||
showToolbar: boolean("Show toolbar", true),
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue