import React from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { Button } from '../Button/Button'; import { Stack } from '../Stack/Stack'; import { Table } from '../Table/Table/Table'; import { TableBody } from '../Table/TableBody/TableBody'; import { TableCell } from '../Table/TableCell/TableCell'; import { TableHeader } from '../Table/TableHeader/TableHeader'; import { TableHeaderCell } from '../Table/TableHeaderCell/TableHeaderCell'; import { TableRow } from '../Table/TableRow/TableRow'; import { H1 } from '../Typography/H1/H1'; import { Preview } from './Preview'; const meta: Meta = { title: 'UI kit/Preview', component: Preview, tags: ['autodocs'], }; export default meta; type Story = StoryObj>; export const Default: Story = { args: { content: () => 'This is a preview', children: triggerProps => , }, }; type TableStory = StoryObj>; export const TablePreview: TableStory = { args: { content: () => ( <>

This is a detail preview

Header cell 1 Header cell 2 Header cell 3 Header cell 4 {[1, 2, 3, 4].map(item => ( {`Row ${item}, cell 1`} {`Row ${item}, cell 2`} {`Row ${item}, cell 3`} {`Row ${item}, cell 4`} ))}
), children: triggerProps => ( This is a product name ), }, render: args => ( Header cell 2 Header cell 2 Header cell 3 Header cell 4 {[1, 2, 3, 4].map(item => ( {`Row ${item}, cell 2`} {`Row ${item}, cell 3`} {`Row ${item}, cell 4`} ))}
), };