fix(story): replace compact and document size props

This commit is contained in:
albert 2020-09-24 16:54:08 +02:00
commit e460aaaa50

View file

@ -1,4 +1,10 @@
import { withKnobs, array, boolean, number } from "@storybook/addon-knobs";
import {
withKnobs,
array,
boolean,
number,
select,
} from "@storybook/addon-knobs";
import Component from "./DataTableSkeleton.Story.svelte";
export default { title: "DataTableSkeleton", decorators: [withKnobs] };
@ -9,7 +15,11 @@ export const Default = () => ({
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),
size: select(
"Row height (size)",
{ compact: "compact", short: "short", tall: "tall", none: null },
null
),
showHeader: boolean("Show header", true),
headers: array(
"Optional table headers (headers)",