import type { Meta, StoryObj } from "@storybook/react"; import { Table, Row } from "../src/components/Table/Table"; import "./Table.stories.css"; import { Cell } from "../src"; const meta = { title: "Components/Table", component: Table, parameters: { layout: "centered", }, tags: ["autodocs"], argTypes: {}, } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { args: { rows: [ Ox45678FDGHJKLBSA21, My file, Some data, Some data, ]} >, ], headers: ["id", "title", "other"], }, }; export const Scroll: Story = { args: { className: "tableSmall", rows: [ Ox45678FDGHJKLBSA21, My file, Some data, Some data, ]} >, ], headers: ["id", "title", "other", "actions"], }, }; export const Sort: Story = { args: { className: "tableSmall", rows: [ Ox45678FDGHJKLBSA22, My file, 1, Some data, ]} >, Ox45678FDGHJKLBSA23, My file, 2, Some data, ]} >, ], headers: [["id"], ["title", () => {}], ["other", () => {}], ["actions"]], defaultSortIndex: 2, }, }; export const Empty: Story = { args: { rows: [], headers: ["id", "title", "state", "actions"], }, };