import React from 'react'; import { getWrapperDecorator } from '../../stories'; import { Table } from '.'; const { THead, TBody, Td, Tr, Th } = Table; export default { title: 'UI/Table', component: Table, decorators: [getWrapperDecorator()], }; export const Default = () => (
a1 b1 c1
a2 b2 c2
a3 b3 c3
); export const Compact = () => (
a1 b1 c1
a2 b2 c2
a3 b3 c3
); export const Outline = () => (
a1 b1 c1
a2 b2 c2
a3 b3 c3
); export const Empty = () => ; export const EmptyWithCustomElement = () => (
No items available

} /> ); export const WithHeaders = () => (
Col A Col B Col C
a1 b1 c1
a2 b2 c2
a3 b3 c3
); export const WithHeadersAndOutline = () => (
Col A Col B Col C
a1 b1 c1
a2 b2 c2
a3 b3 c3
); export const WithMultipleRowsHeader = () => (
Colspan
Col A Col B Col C
a1 b1 c1
a2 b2 c2
a3 b3 c3
); export const WithRowHeaders = () => (
row 1 a1 b1 c1
row 2 a2 b2 c2
row 3 a3 b3 c3
); export const WithCustomContentAndAttributes = () => (
Col A (right) Col B (center) Col C(underline)
row 1 a1 b1 c1
row 2 a2 b2 c2
row 3 a3 b3 c3
);