import React from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { Table } from '../Table/Table'; import { TableCell } from '../TableCell/TableCell'; import { TableHeader } from '../TableHeader/TableHeader'; import { TableRow } from '../TableRow/TableRow'; import { TableBody } from './TableBody'; const meta: Meta = { title: 'UI kit/Table/TableBody', component: TableBody, tags: ['autodocs'], decorators: [ Story => (
Header cell 1 Header cell 2 Header cell 3 Header cell 4
), ], argTypes: { children: { control: { disable: true } }, }, }; export default meta; type Story = StoryObj; export const Default: Story = { args: {}, render: args => ( {[1, 2, 3, 4].map(item => ( {`Row ${item}, cell 1`} {`Row ${item}, cell 2`} {`Row ${item}, cell 3`} {`Row ${item}, cell 4`} ))} ), }; export const Empty: Story = { args: {}, render: args => ( ), };