datui
Color scheme

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 onClick or href the row renders a <button> or <a>; its name is the title and text lines, separated by spaces.
  • actions sit outside that element, so there are no nested interactive controls and they don't trigger the row.
  • RichCellIcon (RichCell.Icon) is decorative and aria-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.

PropTypeDefaultDescription
actionsReactNode—Buttons rendered below the row, outside its tappable area, so they never nest inside it.
activatedboolean—Keep the pressed look, e.g. for the active item of a list.
afterReactNode—Trailing content, shown under `meta`/`submeta`.
afterAlignAlignstart
asElementType<any, keyof IntrinsicElements>—Element to render. Defaults to `a` with `href`, `button` with `onClick`, otherwise `div`.
beforeReactNode—Leading content, usually a large avatar or `RichCellIcon`.
beforeAlignAlignstart
bottomReactNode—Content under the text, e.g. a stack of avatars.
classNamestring—
contentAlignAlignstart
disabledboolean—
extraSubtitleReactNode—
hrefstring—
metaReactNode—Short trailing text next to the title, e.g. a time.
multilinebooleanfalseWrap long text instead of truncating it.
overTitleReactNode—
relstring—
submetaReactNode—Trailing text under `meta`.
subtitleReactNode—
targetstring—
type"button" | "submit" | "reset"—

RichCellIcon

Fixed-size wrapper for an icon in RichCell's `before`/`after`.

PropTypeDefaultDescription
classNamestring—