Marker
Displays an inline status, system note, bordered row, or labeled separator in a conversation.
Switched to a new branch
Thinking...
Conversation compacted
Explored 4 files
Installation
pnpm add @heyramzi/uiUsage
import * as Marker from "@heyramzi/ui/shadcn/marker";<Marker.Root>
<Marker.Content>Switched to a new branch</Marker.Content>
</Marker.Root>
<Marker.Root variant="separator">
<Marker.Content>Conversation compacted</Marker.Content>
</Marker.Root>Keyboard and accessibility
- Marker has no role. Add role="status" to one that changes live, like "Thinking...", so it's read out.
- Marker.Icon is hidden from screen readers. The text carries the meaning.
- With reduced motion on, the shimmer stops.
API reference
Marker.Root
variant"default" | "separator" | "border"- Default
"default" childSnippet<[{ props: Record<string, unknown> }]>refbindableHTMLDivElement | null- Default
null classstring...rest- Every prop of
HTMLAttributes<HTMLDivElement>fromsvelte/elements
| Prop | Type | Default |
|---|---|---|
variant | "default" | "separator" | "border" | "default" |
child | Snippet<[{ props: Record<string, unknown> }]> | |
ref bindable | HTMLDivElement | null | null |
class | string | |
...rest | Every prop of HTMLAttributes<HTMLDivElement> from svelte/elements | |
Marker.Icon
refbindableHTMLSpanElement | null- Default
null classstringchildrenSnippet...rest- Every prop of
HTMLAttributes<HTMLSpanElement>fromsvelte/elements
| Prop | Type | Default |
|---|---|---|
ref bindable | HTMLSpanElement | null | null |
class | string | |
children | Snippet | |
...rest | Every prop of HTMLAttributes<HTMLSpanElement> from svelte/elements | |
Marker.Content
refbindableHTMLSpanElement | null- Default
null classstringchildrenSnippet...rest- Every prop of
HTMLAttributes<HTMLSpanElement>fromsvelte/elements
| Prop | Type | Default |
|---|---|---|
ref bindable | HTMLSpanElement | null | null |
class | string | |
children | Snippet | |
...rest | Every prop of HTMLAttributes<HTMLSpanElement> from svelte/elements | |