Adres
Playground/ docs
Components

Table

Sizes, the ghost variant, and selected/hover row states for tabular data.

Table

Sizes — sm · md · lg

Three sizes scale cell padding and inherited cell text together. Use sm for dense tables (admin lists, comparison views), md as the default, and lg when the table is the page's centerpiece. For numeric columns use text-end on the head & cell so the alignment flips correctly in RTL.

sm

PropertyTypeLocationBedsPrice (AED)
Saadiyat Villa 04VillaSaadiyat Island512,500,000
Marina Heights 12BApartmentAl Reem Island21,850,000
Yas Acres Plot 7TownhouseYas Island44,200,000
3 properties18,550,000
Active listings — May 2026

md

PropertyTypeLocationBedsPrice (AED)
Saadiyat Villa 04VillaSaadiyat Island512,500,000
Marina Heights 12BApartmentAl Reem Island21,850,000
Yas Acres Plot 7TownhouseYas Island44,200,000
3 properties18,550,000
Active listings — May 2026

lg

PropertyTypeLocationBedsPrice (AED)
Saadiyat Villa 04VillaSaadiyat Island512,500,000
Marina Heights 12BApartmentAl Reem Island21,850,000
Yas Acres Plot 7TownhouseYas Island44,200,000
3 properties18,550,000
Active listings — May 2026

Variant: ghost — borderless, no surface chrome

The ghost variant drops the outer border, rounded corner, and muted header background. Use when the table is already nested in a card or panel — keeps the visual weight low and the rhythm aligned with the surrounding content.

AgentListingsClosedVolume (AED)
Layla Al Mansoori14842,300,000
Omar Khalid9527,150,000
Sara Nasser11733,600,000

Selected & hover row states

Hover and selection states apply only to data rows — they're scoped to TableBody, so the header doesn't inherit them. Set data-state="selected" on a row to apply the selected background (pair with a leading Checkbox in the cell whose role="checkbox" drops the trailing padding via [&:has([role=checkbox])]:pe-0).

PropertyStatusPrice (AED)
Saadiyat Villa 04Active12,500,000
Marina Heights 12BReserved1,850,000
Yas Acres Plot 7Active4,200,000
Reem Tower 18ASold2,950,000