diff --git a/packages/ui/src/components/table/table-header.svelte b/packages/ui/src/components/table/table-header.svelte index 2c0b849d9..7ab411a9a 100644 --- a/packages/ui/src/components/table/table-header.svelte +++ b/packages/ui/src/components/table/table-header.svelte @@ -11,7 +11,7 @@ + import type { Meta } from '@storybook/svelte' + + import * as Table from './index.js' + + export const meta = { + title: 'Atom/Table', + + tags: ['autodocs'], + parameters: { + docs: { + description: { + component: ` +The **Table** component is used to render structured data in a tabular format. +This example demonstrates the use of each sub-component: +- **Table.Root**: The root container for the table. +- **Table.Header**: The section for the table header, containing column labels. +- **Table.Row**: Represents a row within either the header or the body. +- **Table.Head**: Column headers, typically styled differently from body cells. +- **Table.Body**: Contains the main content rows. +- **Table.Cell**: Represents an individual data cell, with support for styling and spans. + `, + }, + }, + }, + argTypes: {}, + } satisfies Meta + + + + + + + + + + Invoice + Status + Method + Amount + + + + + INV001 + Paid + Credit Card + $250.00 + + + Unpaid + QR Code Promptpay + $1,250.00 + + + INV002 + Paid + Mobile Banking + $550.00 + + + + + + + + + + Invoice + Status + Method + Amount + + + + + + + + + + + + + + + + + + INV001 + Paid + Credit Card + $250.00 + + + INV002 + Unpaid + QR Code Promptpay + $1,250.00 + + + INV003 + Paid + Mobile Banking + $550.00 + + + +