TableProps
Hierarchy
-
ComponentPropsWithoutRef
<"div"
>↳
TableProps
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:60 (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:55 (opens in a new tab)
density
• Optional
density: "default"
| "compact"
| "comfortable"
The density of the table
Default
"default";
Defined in
packages/components/src/table/table.tsx:75 (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:70 (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:65 (opens in a new tab)