datui
Color scheme

Data display

MiniInfoCell

Compact info line with a small icon, for profile details, "Add info" and "Show more" rows.

import { MiniInfoCell } from "datui";

Playground

Lives in Lisbon
<MiniInfoCell mode="base" textWrap="nowrap">Lives in Lisbon</MiniInfoCell>

Examples

Modes

Lives in Lisbon

Text wrapping

nowrap truncates, short clamps to 3 lines, full wraps.

A long status line that does not fit on one line. It keeps going so you can see the difference between truncating, clamping to three lines and wrapping freely across as many lines as it needs.
A long status line that does not fit on one line. It keeps going so you can see the difference between truncating, clamping to three lines and wrapping freely across as many lines as it needs.
A long status line that does not fit on one line. It keeps going so you can see the difference between truncating, clamping to three lines and wrapping freely across as many lines as it needs.

Accessibility

  • Renders a <button> with onClick, otherwise a static <div>.
  • Icons are decorative; pass lucide icons (which are aria-hidden) or mark custom ones aria-hidden.

API

MiniInfoCell

Compact info line with a small icon, e.g. profile details. Renders a button with `onClick`.

PropTypeDefaultDescription
activatedboolean—Keep the pressed look, e.g. for the active item of a list.
afterReactNode—
asElementType<any, keyof IntrinsicElements>—Element to render. Defaults to `a` with `href`, `button` with `onClick`, otherwise `div`.
beforeReactNode—Small leading icon.
chevronbooleanfalse
classNamestring—
disabledboolean—
hrefstring—
mode"base" | "accent" | "add" | "more"base`base` plain info, `accent` link-colored, `add` call to add info, `more` "show more" row.
relstring—
targetstring—
textWrap"full" | "nowrap" | "short"nowrap`nowrap` truncates to one line, `short` clamps to 3 lines, `full` wraps freely.
type"button" | "submit" | "reset"—