Data display
RichCell
Taller row for rich content: large media, title with meta, subtitles, a bottom slot and action buttons below.
import { RichCell, RichCellIcon } from "datui";Playground
Design review 2h Tomorrow, 10:00
<RichCell subtitle="Tomorrow, 10:00" meta="2h" beforeAlign="start">Design review</RichCell>Examples
Content slots
Report.pdf Long subtitles wrap onto more lines when multiline is set, instead of being truncated.
Actions
actions render outside the row's tappable area, so they never nest inside its button.
Accessibility
- With
onClickorhrefthe row renders a<button>or<a>; its name is the title and text lines, separated by spaces. actionssit outside that element, so there are no nested interactive controls and they don't trigger the row.RichCellIcon(RichCell.Icon) is decorative andaria-hidden.
API
RichCell
Taller row for rich content: large media, title with meta, subtitles, a bottom slot and actions. `ref` and `className` go to the outer element; other props to the tappable row.
| Prop | Type | Default | Description |
|---|---|---|---|
| actions | ReactNode | — | Buttons rendered below the row, outside its tappable area, so they never nest inside it. |
| activated | boolean | — | Keep the pressed look, e.g. for the active item of a list. |
| after | ReactNode | — | Trailing content, shown under `meta`/`submeta`. |
| afterAlign | Align | start | |
| as | ElementType<any, keyof IntrinsicElements> | — | Element to render. Defaults to `a` with `href`, `button` with `onClick`, otherwise `div`. |
| before | ReactNode | — | Leading content, usually a large avatar or `RichCellIcon`. |
| beforeAlign | Align | start | |
| bottom | ReactNode | — | Content under the text, e.g. a stack of avatars. |
| className | string | — | |
| contentAlign | Align | start | |
| disabled | boolean | — | |
| extraSubtitle | ReactNode | — | |
| href | string | — | |
| meta | ReactNode | — | Short trailing text next to the title, e.g. a time. |
| multiline | boolean | false | Wrap long text instead of truncating it. |
| overTitle | ReactNode | — | |
| rel | string | — | |
| submeta | ReactNode | — | Trailing text under `meta`. |
| subtitle | ReactNode | — | |
| target | string | — | |
| type | "button" | "submit" | "reset" | — |
RichCellIcon
Fixed-size wrapper for an icon in RichCell's `before`/`after`.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — |