Table
DaisyUITable can be used to show a list of data in a table format.
Basic Table
| Name | Job | Favorite Color | |
|---|---|---|---|
| 1 | Cy Ganderton | Quality Control Specialist | Blue |
| 2 | Hart Hagerty | Desktop Support Technician | Purple |
| 3 | Brice Swyre | Tax Accountant | Red |
Zebra Table
Alternating row colors.
| Name | Job | Color | |
|---|---|---|---|
| 1 | Alice | Engineer | Blue |
| 2 | Bob | Designer | Green |
| 3 | Charlie | Manager | Red |
Extra Small Table
Compact size for dense data.
| Name | Job | |
|---|---|---|
| 1 | Alice | Engineer |
| 2 | Bob | Designer |
Code Example
use rsxui::components::{Table, Size};use rsx_macros::rsx;let html = rsx! { <Table zebra={true} size={Size::Sm}> <thead> <tr><th>"Name"</th></tr> </thead> <tbody> <tr><td>"Alice"</td></tr> </tbody> </Table>};Created by Isak Rickyanto@2026