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.
Import
Section titled “Import”import { Marker } from "@zentara-co/zenos-ui";Composition
Section titled “Composition”Marker has a decorative icon slot and a content slot.
<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.
Variants
Section titled “Variants”defaultis an inline status or note.borderadds a decorative bottom boundary while keeping the same layout.separatorcenters 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.
Status updates
Section titled “Status updates”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.
Labeled separators
Section titled “Labeled separators”Use separator markers for dates, elapsed time, compacted history, or other readable boundaries.
Links and buttons
Section titled “Links and buttons”Use render to compose Marker onto a native anchor or button. Interactive markers receive hover
and focus-visible affordances while keeping their native semantics.
<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
| Prop | Type | Default | Description |
|---|---|---|---|
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-*.
Accessibility
Section titled “Accessibility”- 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.