@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
38 lines (37 loc) • 1.36 kB
TypeScript
import { ComponentProps } from 'react';
/**
* Table primitives for creating Table UI. For ready table component, use DataTable.
*/
export declare const Table: ({ className, ...props }: ComponentProps<"table">) => import("react").JSX.Element;
/**
* Styled `thead` element.
*/
export declare const TableHeader: ({ className, ...props }: ComponentProps<"thead">) => import("react").JSX.Element;
/**
* Styled `tbody` element.
*/
export declare const TableBody: ({ className, ...props }: ComponentProps<"tbody">) => import("react").JSX.Element;
/**
* Styled `tfoot` element.
*/
export declare const TableFooter: ({ className, ...props }: ComponentProps<"tfoot">) => import("react").JSX.Element;
export interface TableRowProps extends ComponentProps<"tr"> {
/**
* Adds hover styles.
*
* @default true
*/
isHoverable?: boolean;
}
/**
* Styled `tr` element. Adds proper focus and tab index when `onClick` is provided.
*/
export declare const TableRow: ({ className, onClick, isHoverable, ...props }: TableRowProps) => import("react").JSX.Element;
/**
* Styled `th` element.
*/
export declare const TableHead: ({ className, ...props }: ComponentProps<"th">) => import("react").JSX.Element;
/**
* Styled `td` element.
*/
export declare const TableCell: ({ className, ...props }: ComponentProps<"td">) => import("react").JSX.Element;