import type { Meta, StoryObj } from '@storybook/react' import { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from '@/components/ui/table' const meta = { title: 'Data/Table', component: Table, tags: ['autodocs'], parameters: { layout: 'centered' }, } satisfies Meta export default meta type Story = StoryObj const invoices = [ { invoice: 'INV001', status: 'Paid', method: 'Credit Card', amount: '$250.00' }, { invoice: 'INV002', status: 'Pending', method: 'PayPal', amount: '$150.00' }, { invoice: 'INV003', status: 'Unpaid', method: 'Bank Transfer', amount: '$350.00' }, { invoice: 'INV004', status: 'Paid', method: 'Credit Card', amount: '$450.00' }, { invoice: 'INV005', status: 'Paid', method: 'PayPal', amount: '$550.00' }, ] export const Default: Story = { render: () => (
A list of your recent invoices. Invoice Status Method Amount {invoices.map((invoice) => ( {invoice.invoice} {invoice.status} {invoice.method} {invoice.amount} ))} Total $1,750.00
), } export const Simple: Story = { render: () => (
Name Role Alice Engineer Bob Designer Charlie Manager
), } export const Empty: Story = { render: () => (
No data available. Name Email Status No results found.
), }