@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
38 lines (37 loc) • 1.29 kB
TypeScript
import { Meta, StoryObj } from '@storybook/react';
import { DataTable } from './DataTable';
import { Person } from './DataTable.mocks';
declare const meta: Meta<typeof DataTable>;
export default meta;
type Story = StoryObj<typeof DataTable<Person>>;
export declare const Default: Story;
export declare const Paginated: Story;
export declare const HeaderAction: Story;
/**
* Click on row.
*/
export declare const RowAction: Story;
/**
* Presents some ready-to-use columns, like dateColumn and dateTimeColumn.
*/
export declare const PremadeColumns: Story;
/**
* Row actions via RowDropdownMenu.
*/
export declare const RowDropdownActions: Story;
/**
* Custom view that replaces standard table view.
*/
export declare const CustomView: () => import("react").JSX.Element;
export declare const Loading: Story;
export declare const Empty: Story;
export declare const CustomizedEmptyMessage: Story;
export declare const Error: Story;
export declare const Minimal: Story;
export declare const NoBorder: Story;
/**
* Demonstrates custom cell styling using `meta.cellClassName` on column definitions.
* Includes both a static class applied to an entire column and a dynamic function
* that computes classes per cell based on the cell value.
*/
export declare const CustomCellStyling: Story;