2.15.2
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) |
---|---|---|---|---|
|
A Drupal-style attributes object with extra attributes to append to this component. |
object
|
— |
|
|
Generates top and side headers, each can contain an array of |
object
|
— |
|
|
Generates an array of rows, each can contain an array of |
array
|
— |
|
|
Generates a table footer, can contain an array of |
object
|
— |
|
|
Display either a regular table or a more complex numeric table. |
string
|
regular
|
|
|
Removes the vertical border in between cells. |
boolean
|
false
|
|
|
Sets the width of the first column to be as wide as the longest text. |
boolean
|
false
|
|