2.21.0
Table Component in Bolt
Table layout for tabular content. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.
npm install @bolt/components-table
Note: when assigning component props as HTML attributes on a web component, make sure to use kebab-case
.
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes |
A Drupal-style attributes object with extra attributes to append to this component. |
object
|
— |
|
headers |
Generates top and side headers, each can contain an array of |
object
|
— |
|
rows * |
Generates an array of rows, each can contain an array of |
array
|
— |
|
footer |
Generates a table footer, can contain an array of |
object
|
— |
|
format |
Display either a regular table or a more complex numeric table. |
string
|
regular
|
|
borderless |
Removes the vertical border in between cells. |
boolean
|
false
|
|
first_col_fixed_width |
Sets the width of the first column to be as wide as the longest text. |
boolean
|
false
|
|