import { storiesOf } from "@storybook/react"; import { Table } from "@vivid-planet/comet-admin"; import * as React from "react"; interface IExampleRow { id: number; foo1: string; foo2: string; nestedFoo: { foo: string; }; } function Story() { const data: IExampleRow[] = [ { id: 1, foo1: "blub", foo2: "blub", nestedFoo: { foo: "bar" } }, { id: 2, foo1: "blub", foo2: "blub", nestedFoo: { foo: "bar" } }, ]; return ( {row.id}, }, { name: "bar", visible: false, }, { name: "nestedFoo.foo", header: "Nested foo", }, ]} /> ); } storiesOf("comet-admin", module).add("Table", () => );