From 2fc737c12b008334498291fa244cba33bab5c514 Mon Sep 17 00:00:00 2001 From: Stephen Watkins Date: Wed, 16 Aug 2023 17:19:28 -0400 Subject: [PATCH] support header variant --- documentation/specs/Table.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/documentation/specs/Table.md b/documentation/specs/Table.md index 61d1496c9..6be2b18e0 100644 --- a/documentation/specs/Table.md +++ b/documentation/specs/Table.md @@ -55,6 +55,12 @@ type TableProps = AriaLabelingProps & { /** Whether or not row expansion is enabled. */ hasExpandableRows?: boolean; + /** + * Variant of the table header to use. + * @default primary + */ + headerVariant?: "primary" | "secondary"; + /** Handler that is called when a user performs an action on the cell. */ onCellAction?: (key: Key) => void; @@ -352,3 +358,23 @@ function CustomTable() { ); } ``` + +_Header variant:_ + +```tsx +import { Table } from "@easypost/easy-ui/Table"; + +const columns = []; /*...*/ +const rows = []; /*...*/ + +function CustomTable() { + return ( + + ); +} +```