shelving
Version:
Toolkit for using data in JavaScript.
16 lines (15 loc) • 902 B
TypeScript
import type { ReactElement } from "react";
import { type AlignVariants } from "../style/Align.js";
import { type ColorVariants } from "../style/Color.js";
import { type SpacingVariants } from "../style/Spacing.js";
import { type ThicknessVariants } from "../style/Thickness.js";
import { type TypographyVariants } from "../style/Typography.js";
import type { ChildProps } from "../util/props.js";
export interface TableProps extends AlignVariants, ColorVariants, SpacingVariants, ThicknessVariants, TypographyVariants, ChildProps {
}
/**
* Table block — rendered as `<table>`.
* - Wrap in a `<Figure scrollable>` (or any `scrollable` block) if the table may exceed the container width on small screens.
* - Thickness variants apply to the `<th>` / `<td>` borders (the `<table>` element itself has no border).
*/
export declare function Table({ children, ...variants }: TableProps): ReactElement;