Marker
The Marker component displays inline conversation markers such as status updates, system notes, bordered rows, and labeled separators.
Installation
Copy the following code into your app directory.
Command
Command
Manual
Manual
uv
Anatomy
Use the following composition to build a Marker component.
Examples
Variants
Use variant to switch between an inline marker, bordered row, and labeled separator.
Status
Set role="status" and include a Spinner for streaming or in-progress markers so updates are announced.
Shimmer
Add the shimmer utility class to marker.content for an animated streaming-text effect. The utility ships with the buridan package — see the shimmer docs for installation.
Separator
Use the separator variant for labeled dividers, such as dates or section breaks, in a conversation.
Border
Use the border variant for status rows that should keep the default marker alignment while separating the next row.
With Icon
Use marker.icon to render an icon alongside the content. Use flex-col to stack the icon above the content.
Links and Buttons
Turn a marker into a link or button with.
Accessibility
marker.root is presentational by default. The correct semantics depend on how you use it, so choose the role based on intent rather than relying on a single default.
Status and Progress
For streaming or progress markers such as "Thinking..." or a running tool, set role="status" so assistive tech announces the update as it appears. marker.root forwards role to the underlying element.
python
Labeled Separators
A separator that carries text, such as a date or a section label, needs no role. The divider lines are decorative CSS pseudo-elements, and the text is announced as ordinary content.
python
Note: Do not add role="separator" to a labeled divider. A separator takes its accessible name from aria-label, not from its text, and its contents are treated as presentational, so the visible label would not be announced. Reserve role="separator" for a divider with no meaningful text.
Bordered Markers
A bordered marker keeps the same semantics as the default marker. The bottom border is decorative, so choose role="status" or no role based on the marker's purpose.
python
Decorative Icons
marker.icon is decorative and hidden from assistive tech with aria-hidden, so the adjacent marker.content carries the meaning. For an icon-only marker, provide an aria_label so it is not announced as empty.
python
Interactive Markers
When a marker links or triggers an action, render it as an rx.link or pass on_click so it is focusable and exposes the correct role.
python
API Reference
marker.root
The root marker element.
marker.icon
A decorative icon slot. Hidden from assistive tech with aria-hidden.
marker.content
The marker text content.