API Reference
NOTE: Exotic components are not callable.
Parameters
props
- Type:
@vtex/shoreline-components.TableProps & @types/react.React.RefAttributes<typescript.HTMLDivElement>
Props
asChild (optional)
If true, the Table component will be rendered as a child of the Compose component
-
Type:
boolean -
Default:
false
columnWidths (optional)
Array of column widths
When using the Table component
-
Type:
string[] -
Default: ` []
When using the SimpleTable component `
density (optional)
The density of the table
-
Type:
default | compact | comfortable -
Default:
'default'
stickyColumn (optional)
If true, the first column will be sticky
-
Type:
boolean -
Default:
false
stickyHeader (optional)
If true, the header will be sticky
-
Type:
boolean -
Default:
false