Skip to content
Playground

Marker

An inline conversation status, bordered event row, or labeled separator.

Marker presents lightweight system notes and boundaries inside a conversation. Compose it with Message or place it directly in a Message Scroller between turns.

Switched to a new branch
Thinking...
Conversation compacted
Explored 4 files
TSX
import { Marker } from "@zentara-co/zenos-ui";

Marker has a decorative icon slot and a content slot.

TSX
<Marker>  <Marker.Icon>    <FolderIcon />  </Marker.Icon>  <Marker.Content>Explored 4 files</Marker.Content></Marker>

Marker.Icon always uses aria-hidden="true". Put the marker’s meaning in Marker.Content, or add an accessible label to the root for an icon-only marker.

  • default is an inline status or note.
  • border adds a decorative bottom boundary while keeping the same layout.
  • separator centers a visible label between two decorative divider lines.

The labeled separator intentionally has no default role. A separator role makes descendants presentational, which would prevent the visible text from being announced as ordinary content.

Add role="status" when a marker reports streaming or in-progress work that should be announced. Avoid adding a live-region role to historical markers that are already present when the page loads.

Running security checks
Compacting conversation

Use separator markers for dates, elapsed time, compacted history, or other readable boundaries.

Today
Worked for 42 seconds
Conversation compacted

Use render to compose Marker onto a native anchor or button. Interactive markers receive hover and focus-visible affordances while keeping their native semantics.

View the pull request
TSX
<Marker render={<a href="/pull/42" />}>  <Marker.Content>View the pull request</Marker.Content></Marker>

Marker relies on flex gaps rather than physical margins, so icons and content follow document direction automatically. Divider lines remain balanced in both directions. Mirror directional icons with rtl:rotate-180 when their meaning changes direction.

Variants

defaultborderseparator
Marker.Root
Marker.Icon
Marker.Content

API

PropTypeDefaultDescription
variant default | border | separator default Inline note, bordered event row, or labeled divider layout.
render ReactElement | ((props, state) => ReactElement) — Composes Marker props onto an anchor, button, or another element.
role AriaRole — Use status for live progress; no role is supplied by default.
Icon HTMLAttributes<HTMLSpanElement> — Decorative icon slot that is always hidden from assistive technology.
Content HTMLAttributes<HTMLSpanElement> — Visible marker text with long-content wrapping.
native props React.HTMLAttributes<HTMLDivElement> — Forwards native attributes, events, aria-*, data-*, className, style, and ref.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

  • Use role="status" only for live progress or streaming updates.
  • Do not add role="separator" to a labeled separator; keep its text readable to assistive tech.
  • Give an icon-only root an aria-label.
  • Render interactive markers as real anchors or buttons through render.
  • Do not rely on icon shape, border treatment, or position alone to communicate meaning.

The component is adapted to Zenos conventions from the shadcn Marker pattern.