Skip to content

A set of directives for styling native HTML tables.

[atlasTableBody][atlasTableCaption][atlasTableCell][atlasTableHead][atlasTableHeader][atlasTableRow][atlasTable]

Examples

Native table

Directives style a native table , so markup, semantics and accessibility stay yours. For data features, use the Data Grid.

Recent invoices
InvoiceStatusAmount
INV-001Paid€250.00
INV-002Pending€150.00
INV-003Unpaid€350.00

Dense and bordered, with row headers

dense and bordered on atlasTable suit data-heavy views. Use th scope="row" for the cell that names each row, so screen readers announce it with every value.

Server uptime, last 3 months
RegionAugSepOct
EU West99.98%99.95%100%
US East99.90%99.99%99.97%
Asia99.93%99.96%99.99%

API

Generated from the library source, so it always matches the code.

AtlasTableDirective [atlasTable]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.
dense booleanfalse Reduces padding on all cells and headers for a compact layout
bordered booleanfalse Adds visible borders to all cells

AtlasTableHeaderDirective [atlasTableHeader]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.

AtlasTableBodyDirective [atlasTableBody]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.
striped booleanfalse Alternates row background for better readability

AtlasTableRowDirective [atlasTableRow]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.

AtlasTableHeadDirective [atlasTableHead]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.

AtlasTableCellDirective [atlasTableCell]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.

AtlasTableCaptionDirective [atlasTableCaption]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.