TableProps
Hierarchy
-
ComponentPropsWithoutRef
<"div"
>↳
TableProps
Table of contents
Properties
Properties
asChild
• Optional
asChild: boolean
If true, the Table component will be rendered as a child of the Compose component
Default
false;
Defined in
packages/components/src/table/table.tsx:59 (opens in a new tab)
columnWidths
• Optional
columnWidths: string
[]
Array of column widths
When using the Table component
Default
[]
When using the SimpleTable component
Default
[repeat(${columns.length}, var(--sl-table-default-column-width))]
Defined in
packages/components/src/table/table.tsx:54 (opens in a new tab)
density
• Optional
density: "default"
| "comfortable"
| "compact"
The density of the table
Default
"default";
Defined in
packages/components/src/table/table.tsx:74 (opens in a new tab)
stickyColumn
• Optional
stickyColumn: boolean
If true, the first column will be sticky
Default
false;
Defined in
packages/components/src/table/table.tsx:69 (opens in a new tab)
stickyHeader
• Optional
stickyHeader: boolean
If true, the header will be sticky
Default
false;
Defined in
packages/components/src/table/table.tsx:64 (opens in a new tab)