Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProCompact or comfortable row density reported through a callback so the host can persist it.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Data-heavy tables where users prefer tighter rows.
Do not use it when: Density is fixed by design.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
rows | Row[] | - | Project rows. |
caption | string | - | Caption. |
density | Density | - | Controlled density. |
defaultDensity | Density | comfortable | Initial density. |
onDensityChange | (d) => void | - | Persist the choice. |
A toggle group with radio semantics and an accessible name.
The pattern ships with a test (table-density-toggle.test.tsx). Tests uncontrolled change, callback and controlled behaviour.