import type { Meta, StoryObj } from '@storybook/react'; import React from 'react'; import { SkeletonCheckbox } from '../../SkeletonCheckbox'; import { SkeletonText } from '../../SkeletonText'; import { SkeletonTable } from '../SkeletonTable'; import styles from './DemoSkeletonTable.module.css'; const meta: Meta = { title: 'Skeleton/Table', component: SkeletonTable, args: { columns: [ { header: ( <> ), cell: ( <> ), }, ], }, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { withHeader: true, }, }; export const Compact: Story = { args: { withHeader: true, rowHeight: 'compact', }, }; export const WithColumnSeparator = { args: { withHeader: true, withColumnSeparator: true, columns: [ { width: '30%', header: , cell: , }, { width: '50%', header: , cell: , }, { width: '20%', header: , cell: , }, ], }, }; export const WithoutHeader: Story = { args: { columns: [ { cell: ( <> ), }, ], }, }; export const WithCustomNumberOfRows: Story = { args: { withHeader: true, numberOfRows: 3, }, };