Skip to content
daisyBlazor

SimpleTable

A daisyUI table around markup you write yourself. Use it for static or hand-built tables; reach for Table when rows come from a collection.
Data display.tableReplaces MudSimpleTable
Cover · <SimpleTable>
Invoices
DueCustomer
04 MarNorthwind TradersOverdue
07 MarContosoDue soon
10 MarFabrikamPaid
13 MarGlobexPaid

Examples

Basic

Plain thead and tbody inside, styled by daisyUI.

TaskOwnerEstimate
Add SSO to the admin appAna5d
Fix invoice roundingTom1d
Export users to CSVPriya2d
Upgrade to .NET 10Lucas3d
website/Examples/DataDisplay/SimpleTableBasicExample.razor Source

Styles

Striped, Hover, Dense and Bordered.

CustomerPlanSince
Northwind TradersEnterprise2021
ContosoPro2022
FabrikamPro2023
InitechFree2024
website/Examples/DataDisplay/SimpleTableStylesExample.razor Source

Fixed header

FixedHeader caps the height and scrolls; table-pin-rows keeps the header visible.

MonthSignupsPlan
Jan412Pro
Feb388Free
Mar455Pro
Apr501Enterprise
May476Pro
Jun530Free
Jul498Pro
Aug467Free
Sep612Pro
Oct640Enterprise
Nov702Pro
Dec655Free
website/Examples/DataDisplay/SimpleTableFixedHeaderExample.razor Source

API

<SimpleTable>

DaisyBlazor

Parameters

  • Bordered bool
    = false

    Adds a border border-base-300 outline around the table.

  • Dense bool
    = false

    Adds table-sm for compact rows.

  • FixedHeader bool
    = false

    Caps the wrapper height at max-h-96 with vertical scrolling and pins the header (table-pin-rows).

  • Hover bool
    = false

    Highlights body rows on hover: bg-base-200, or bg-base-300 when Striped (zebra rows are already base-200).

  • Striped bool
    = false

    Adds table-zebra for alternating row backgrounds.

  • Class string
    = null

    Extra CSS classes merged onto the <table> element.

  • Style string
    = null

    Inline CSS style applied to the scrolling wrapper <div>.

Content

  • ChildContent RenderFragment

    Table markup (<thead>/<tbody> or Tr/Th/Td) rendered inside the .table.

From MudSimpleTable

SimpleTable keeps MudSimpleTable's parameter names, so most markup moves over by dropping the Mud prefix. See the migration guide for the shared enums, icons and services.

<MudSimpleTable> <SimpleTable>
Something went wrong while running the docs. Reload