Search documentation

Search the documentation and open a page.

A responsive table for displaying structured data.

Loading...

Installation

pnpm dlx shadcn@latest add @wirekyt/table

Composition

[appTableContainer] (optional) └── <table appTable> ├── <caption appTableCaption> (optional) ├── <thead appTableHeader> │ └── <tr appTableRow> │ └── <th appTableHead> ├── <tbody appTableBody> │ └── <tr appTableRow> │ └── <td appTableCell> └── <tfoot appTableFooter> (optional)

Examples

Avatars And Badges

Loading...

Default

Loading...

Editable Cells

Loading...

Empty State

Loading...

Expandable Rows

Loading...
Loading...

Sorting

Loading...

Toolbar And Pagination

Loading...

API Reference

The table directives are styling-only and have no inputs or outputs. Apply them to their matching native table elements to preserve semantic HTML.

SelectorNative elementDescription
[appTableContainer]AnyAdds the responsive overflow container around a table.
table[appTable]<table>Styles the table element.
thead[appTableHeader]<thead>Styles the table header group.
tbody[appTableBody]<tbody>Styles the table body group.
tfoot[appTableFooter]<tfoot>Styles the optional table footer group.
tr[appTableRow]<tr>Styles a table row.
th[appTableHead]<th>Styles a header cell.
td[appTableCell]<td>Styles a data cell.
caption[appTableCaption]<caption>Styles the optional accessible table caption.

Utilities

ExportAngular API
TableImportsReadonly collection containing all table directives for importing.