Data
TwTable
TwTable is a Blazor table component with striped, hoverable, bordered and borderless styles, plus manual pagination.
Last updated
Basic Table
A simple table component with customizable styling.
| Product name | Color | Category | Price |
|---|---|---|---|
| Apple MacBook Pro 17" | Silver | Laptop | £2999 |
| Microsoft Surface Pro | White | Laptop PC | £1999 |
| Magic Mouse 2 | Black | Accessories | £99 |
Striped Table
Table with alternating row colors for better readability.
| Name | Department | Role |
|---|---|---|
| John Doe | Engineering | Developer |
| Jane Smith | Product | Designer |
| Bob Johnson | Operations | Manager |
Hoverable Table
Table with hover effects on rows.
| Task | Status | Priority |
|---|---|---|
| Design homepage | In Progress | High |
| Write documentation | Completed | Medium |
| Fix bugs | Pending | High |
Bordered Table
Table with a hairline divider between rows, for extra structure without a busy grid look.
| Country | Capital | Population |
|---|---|---|
| United States | Washington, D.C. | 331 million |
| United Kingdom | London | 67 million |
| Germany | Berlin | 83 million |
Table Without Border
Table with no outer border.
| Country | Capital | Population |
|---|---|---|
| United States | Washington, D.C. | 331 million |
| United Kingdom | London | 67 million |
| Germany | Berlin | 83 million |
Manual Pagination
TwTable has no built-in paging - it just renders whatever rows you give it. Slice your own data and pair it with
TwPagination to page through it manually. For an all-in-one paginated, searchable, sortable table, use
TwDataTable instead.
| Product name | Category | Price |
|---|---|---|
| Apple MacBook Pro 17" | Laptop | £2999 |
| Microsoft Surface Pro | Laptop | £1999 |
| Magic Mouse 2 | Accessories | £99 |
Theme Configuration
Styling is controlled by
TwBlazorTheme.Components (a TwTableTheme), configured via the
AddTwBlazor() options callback described on the Get Started page.
Every property is a set of Tailwind classes, so changes are picked up by your own Tailwind build.
Inherited from TwTable - this component reuses that theme rather than defining its own.
| Property | Type | Controls |
|---|---|---|
Wrapper |
string | |
ContainerClip |
string | |
Base |
string | |
Bordered |
string | |
Header |
string | |
Body |
string | |
BodyStriped |
string | |
BodyHoverable |
string | |
RowDivider |
string | |
Footer |
string | |
SearchColumn |
string | |
SortIcon |
string | |
HeaderCellPadding |
string | |
BodyCellPadding |
string | |
EmptyState |
string |
Full reference: TwTableTheme on the API docs.