Item

A React component in Beamline's Content & display category, in the free sample.

The generic list row: media, title, description, meta and trailing actions; becomes a link or button when interactive.

Use it for

  • Any list of things: projects, files, services, people.

Not for

  • Tabular data with columns → table or data-grid.

Anatomy

  • media (ItemIcon tile, avatar, thumbnail)
  • title
  • description
  • meta (isolated, tabular; joins the description line below 20rem)
  • actions (own tab stops; with attention)
  • selection bar (inline-start, grows when selected)

Variants

  • variant: plain, outline, card
  • size: sm, md

States

  • static
  • hover (interactive rows: hover tint; actions arrive)
  • pressed (one more rung at once)
  • selected (accent tint, 2px accent-ink bar on the inline-start side, text in ink; stays on hover; actions shown)
  • focus (ring on the row's link or button; actions shown)
  • actions held (one pressed or its menu open: they stay)
  • narrow (below 20rem: meta on the description line)

Keyboard

  • Main area is one link/button; actions are separate tab stops.

Motion

Hover tint arrives at once and leaves over --pui-motion-out; a press steps one more rung at once. The selection bar grows from its middle when the row is chosen (--pui-duration-fast) and gathers over --pui-motion-out when released; a row that starts selected simply is. Actions arrive with attention (.reveal). Reduced motion places at once.

Props

PropTypeDefaultDescription
title (required)ReactNode—Heading shown above the content. Required.
description / media / meta / actionsReactNode—description: Supporting text beneath the label or heading. Defaults to no supporting text. media: Icon tile, avatar or thumbnail on the start side. meta: Right-aligned meta: time, count, status. actions: Trailing controls. Clicks inside do not trigger the row. They wait for attention (hover, focus in the row, the row selected; always shown on touch) and stay while one of them is pressed or has its menu open.
actionsAtRestboolean—Show the actions at rest instead of with attention. Default false.
href / onSelectstring / () => void—href: URL opened when the item is activated. Defaults to a non-link item. onSelect: Called when an item is activated; no handler by default.
selectedboolean—Controlled selected indication; omitted by default to use defaultSelected.
style / refCSSProperties / native Ref—style: Inline styles on the documented visual root; no inline overrides by default. ref: Receives the documented root element; no ref by default.
classNamesItemClassNames—Classes for the named visual parts; no part overrides by default.
variant"ghost" | "outline" | "secondary" | "plain" | "card"—Visual weight; defaults to ghost. Deprecated: The values plain and card alias ghost and secondary.
defaultSelectedboolean—Initial selected indication when uncontrolled; defaults to false.
onSelectedChange(selected: boolean) => void—Reports selecting the row; no callback by default, and onSelect remains the activation event.
ItemIcon.tone / paletteItemIconTone / ItemIconPalette—ItemIcon.tone: On ItemIcon: Semantic colour; defaults to neutral. Deprecated: Named colours should use palette instead. palette: On ItemIcon: Explicit decorative colour overriding the semantic tone; omitted by default.
descriptionReactNode—Supporting text beneath the label or heading. Defaults to no supporting text.
mediaReactNode—Icon tile, avatar or thumbnail on the start side.
metaReactNode—Right-aligned meta: time, count, status.
actionsReactNode—Trailing controls. Clicks inside do not trigger the row. They wait for attention (hover, focus in the row, the row selected; always shown on touch) and stay while one of them is pressed or has its menu open.
hrefstring—URL opened when the item is activated. Defaults to a non-link item.
onSelect(() => void)—Called when an item is activated; no handler by default.
size"md" | "sm"—Control size within the supported size steps. Defaults to "md".
classNamestring—Classes on the documented visual root; no override by default.
styleCSSProperties—Inline styles on the documented visual root; no inline overrides by default.
refRef<HTMLDivElement>—Receives the documented root element; no ref by default.
ItemIcon.toneItemIconTone—On ItemIcon: Semantic colour; defaults to neutral. Deprecated: Named colours should use palette instead.
ItemIcon.paletteItemIconPalette—On ItemIcon: Explicit decorative colour overriding the semantic tone; omitted by default.

Used in

Import

import { Item, ItemIcon } from "@beamline/item";

Get it

Item is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Item is included in the free MIT sample. Get Beamline · Connect your agent

More in Content & display

  • Image compare: Two images in one frame with a divider: drag anywhere, or arrow keys on the handle; horizontal or vertical, with captions.
  • Revision compare: Two revisions of a drawing on one camera: side by side, they pan and zoom together (a crosshair in one pane marks the point under the pointer in the…
  • Live cursors: Who else is working on this, and where: over any shared surface, each person's pointer in the colour their name always gets, with a name flag, gliding…
  • Document viewer: A PDF or a paged document read and marked up in place: page thumbnails beside it, zoom to the width, the page or a percentage, pages by keyboard, a…
  • Video player: A video player on the native <video> element: title bar with an external link and close, centre play with ±10 s, scrub, time, volume, speed, captions…
  • Lightbox: A full-screen image viewer: a thumbnail grows into it and shrinks back, arrows and ←/→ step through the set, Esc or a downward drag closes it.
  • File diff: A change to one file as a unified diff: line numbers, tinted lines, only the changed words marked, long unchanged stretches folded; give rows or just…
  • QR Code: A scannable code set as gradient dots with rounded finder rings and an optional centre mark; a new value ripples out from the centre.
  • Data matrix: A DataMatrix (ECC 200, ISO/IEC 16022) any scanner reads: crisp square modules in SVG at any size, the smallest symbol that holds the value (10×10 to…
  • Slot text: Text and numbers that roll into their new value on reels, digit by digit from the right; other characters fade. Read as plain text by assistive tech.
  • Text reveal: A headline whose words rise into place once, the first time it scrolls into view; never repeats.
  • Text morph: A short label that becomes its next state letter by letter: shared letters glide into place, new ones arrive, old ones leave.
  • Code block: Code to read and copy: highlighted in the system's colours, numbered, marked lines, long files folded behind “Show all”.
  • Inbox list: Conversations waiting for a person, triaged in place: sender, subject and the first words, time, unread weight, star, labels and attachments, grouped by…
  • Comment thread: A discussion attached to something: replies, reactions, @mentions, editing and deleting your own, resolve that folds the thread.
  • Timeline: What happened, newest first and grouped by day: people with avatars, systems with toned icons, relative times with the exact time on hover, details in…
  • Description list: The details of one record as label and value pairs: beside each other or stacked, in as many columns as the room holds; a copy button arrives on the row…
  • Text shimmer: Ongoing work said in words (“Thinking…”) with a calm band of light passing across them; stops when inactive.
  • Logo Carousel: A wall of logos shown a few at a time: every few seconds the slots turn left to right, each logo leaving upward as the next rises in.
  • Avatar group: A team in a small space: overlapping faces that name themselves on hover or focus, and “+N” naming the rest.
  • Avatar: A person or account in a small space: a photo, or initials on the hue their name always gets; presence dot; circle for people, square for companies.
  • Marker: A labelled point in a stream: a status event with an icon between messages, or a label such as "Today" between two hairlines.
  • Credit: "Designed with Beamline" for a site's footer: the Beamline mark and a quiet line, or a small badge. With your partner code, each new customer's first…
  • Badge: A short status, category or count label: six tones, an icon or a status dot, two sizes.
  • Kbd: Keyboard keys as keycaps, for combinations and sequences (G then A); `mod` resolves to ⌘ or Ctrl per platform, symbols are spoken as words.

Guides: Build a data grid and CRM screen in React

Part of Beamline UI: polished, editable React components and complete screens for custom applications. Build your own style from any look; tokens, fonts, radii, motion; not only colours.