Marker
An inline marker with icon and content for annotating UI, such as status notes, highlights, and callouts inside text.
Installation
Bash
Usage
Markers annotate flows — typically conversation threads next to
Message — with inline status notes, date
separators, or row boundaries. Add role="status" when the marker
announces progress; links and buttons work inside the content.
Examples
Variants
separator centers the label between divider lines (date breaks);
border underlines the row (for example an unread boundary).
API reference
Marker
Renders a div by default; swap the element with the Base UI render
prop to make the whole marker a link or button.
| Prop | Type | Default |
|---|---|---|
variant | "default" | "separator" | "border" | "default" |
render | React.ReactElement | div |
MarkerIcon and MarkerContent
Extend span. MarkerIcon is decorative (aria-hidden) — give the
marker an aria-label if it would otherwise be icon-only.
markerVariants is also exported for styling custom elements.