Marker
Inline status, system notes, bordered rows, and labeled separators for conversations — with tones, live dots, and timestamps. Compose with Message in a thread.
Installation#
pnpm dlx shadcn@latest add @davinciui/markerUsage#
Marker is presentational by default — choose the semantics per use: role="status" for streaming updates, render as a link or button for actions, and no role for plain notes. Icons are decorative and hidden from assistive tech; the content carries the meaning.
Marker ├── MarkerIcon └── MarkerContent
Composition#
Use the following composition to build a Marker:
Marker
├── MarkerIcon
├── MarkerContent
│ └── MarkerDot
└── MarkerTimeAPI Reference#
| Prop | Type | Default |
|---|---|---|
variantInline marker, bordered row, or labeled separator with gradient-fade lines. | "default" | "border" | "separator" | "default" |
toneSemantic tone — tints the icon chip and dot; inherited by MarkerIcon and MarkerDot. | "neutral" | "success" | "warning" | "error" | "info" | "neutral" |
sizeRow density. | "default" | "sm" | "default" |
MarkerDot · livePinging live indicator for streaming work. | boolean | false |
MarkerTimeMono tabular timestamp docked at the row edge. | time element | — |
renderRender as a link, button, or custom element with hover treatment. | ReactElement | function | — |
roleAnnounce streaming markers as live status updates. | "status" | — |
aria-labelLabel icon-only markers so they never announce empty. | string | — |
classNameAdditional classes on any part. | string | — |
Accessibility#
Marker is a presentational div by default, so consumers choose semantics; render as an anchor or button adds focusability and a focus-visible ring. Icons and dots are aria-hidden, and lines in separators are decorative. Icon-only markers need aria-label.
Motion#
Interactive markers and icon chips use 150ms ease-out colour transitions, and the live dot pings via animate-ping. Both are suppressed with motion-reduce, and the marker disables its transition. There are no timing or easing props.
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

