import type { Meta, StoryObj } from "@storybook/react" import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, } from "./Table" const meta = { title: "Table/Table", component: Table, parameters: { docs: { description: { component: "A flexible table component with header, body, and footer sections.", }, }, }, } satisfies Meta export default meta type Story = StoryObj export const Basic: Story = { render: () => ( A list of your recent invoices. Invoice Status Method Amount INV001 Paid Credit Card $250.00 INV002 Pending PayPal $150.00 INV003 Unpaid Bank Transfer $350.00 INV004 Paid Credit Card $450.00 INV005 Paid PayPal $550.00 INV006 Pending Bank Transfer $200.00
), } export const WithFooter: Story = { render: () => ( A list of your recent invoices. Invoice Status Method Amount INV001 Paid Credit Card $250.00 INV002 Pending PayPal $150.00 INV003 Unpaid Bank Transfer $350.00 Total $750.00
), } export const Compact: Story = { render: () => ( ID Name Email Role 001 John Doe john@example.com Admin 002 Jane Smith jane@example.com User 003 Bob Johnson bob@example.com Editor
), } export const CustomStyling: Story = { render: () => ( Product Category Price Stock Laptop Electronics $999.00 15 Mouse Accessories $25.00 50 Keyboard Accessories $75.00 30
), }