Skip to content
nexubDesign System
v2.4.0

Components · Data Display

Table

StableSince v0.0.1

Semantic HTML table with styled variants.

import { Table } from '@nexub/react';

Examples

Default

With caption

Props

Props
PropTypeDefaultDescription
Table.Root stripedbooleanfalseApplies alternating row background colours.
Table.Root borderedbooleanfalseAdds borders between rows and columns.
Table.Root hoverablebooleanfalseHighlights rows on mouse hover.
Table.Root stickyHeaderbooleanfalseFixes the table header to the top when scrolling inside a scrollable container.
Table.Head align'start' | 'center' | 'end''start'Text alignment within the header cell.
Table.Cell align'start' | 'center' | 'end''start'Text alignment within the data cell.
Table.Caption side'top' | 'bottom''bottom'Whether the caption appears above or below the table.

On iOS & Android