import type { Meta, StoryObj } from '@storybook/react'; import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, } from '@konobangu/design-system/components/ui/table'; const invoices = [ { invoice: 'INV001', paymentStatus: 'Paid', totalAmount: '$250.00', paymentMethod: 'Credit Card', }, { invoice: 'INV002', paymentStatus: 'Pending', totalAmount: '$150.00', paymentMethod: 'PayPal', }, { invoice: 'INV003', paymentStatus: 'Unpaid', totalAmount: '$350.00', paymentMethod: 'Bank Transfer', }, { invoice: 'INV004', paymentStatus: 'Paid', totalAmount: '$450.00', paymentMethod: 'Credit Card', }, ]; /** * Powerful table and datagrids built using TanStack Table. */ const meta = { title: 'ui/Table', component: Table, tags: ['autodocs'], argTypes: {}, render: (args) => ( A list of your recent invoices. Invoice Status Method Amount {invoices.map((invoice) => ( {invoice.invoice} {invoice.paymentStatus} {invoice.paymentMethod} {invoice.totalAmount} ))}
), } satisfies Meta; export default meta; type Story = StoryObj; /** * The default form of the table. */ export const Default: Story = {};