Table - Aspect UI

The Table component displays data in rows and columns. It supports sorting, pagination, filtering, sticky headers, and responsive layouts for structured information.

Table of Contents#

Table Props#


PropTypeDefaultDescription
childrenReactNode-Table content, typically composed of TableHeader, TableBody, and TableFooter.
classNamestring''Additional CSS class for the table element.

TableBody Props#


PropTypeDefaultDescription
childrenReactNode-Content of the table body, typically TableRow components.
classNamestring''Additional CSS class for the table body.

TableCaption Props#


PropTypeDefaultDescription
childrenReactNode-Caption text describing the table.
classNamestring''Additional CSS class for the table caption.
positiontop bottom'bottom'Position of the caption relative to the table.

TableCell Props#


PropTypeDefaultDescription
childrenReactNode-Content of the table cell.
classNamestring''Additional CSS class for the table cell.
colSpannumber-Number of columns the cell should span.
...restReact.HTMLAttributes<HTMLTableCellElement>-Any other standard table cell attributes.

TableFooter Props#


PropTypeDefaultDescription
childrenReactNode-Footer content for the table.
classNamestring''Additional CSS class for the table footer.
...restReact.HTMLAttributes<HTMLTableSectionElement>-Any other standard table section attributes.

TableHeadCell Props#


PropTypeDefaultDescription
childrenReactNode-Content of the table header cell.
classNamestring''Additional CSS class for the table header cell.

TableHeader Props#


PropTypeDefaultDescription
childrenReactNode-Content of the table header, typically TableRow components.
classNamestring''Additional CSS class for the table header.
...rest--Any other props supported by the header container element.

TableRow Props#


PropTypeDefaultDescription
childrenReactNode-Content of the table row, typically TableCell or TableHeadCell components.
classNamestring''Additional CSS class for the table row.