Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

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/ui

Usage

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"
child Snippet<[{ props: Record<string, unknown> }]>
ref bindable HTMLDivElement | null
Default null
class string
...rest
Every prop of HTMLAttributes<HTMLDivElement> from svelte/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

ref bindable HTMLSpanElement | null
Default null
class string
children Snippet
...rest
Every prop of HTMLAttributes<HTMLSpanElement> from svelte/elements
Prop Type Default
ref bindable HTMLSpanElement | null null
class string
children Snippet
...rest Every prop of HTMLAttributes<HTMLSpanElement> from svelte/elements

Marker.Content

ref bindable HTMLSpanElement | null
Default null
class string
children Snippet
...rest
Every prop of HTMLAttributes<HTMLSpanElement> from svelte/elements
Prop Type Default
ref bindable HTMLSpanElement | null null
class string
children Snippet
...rest Every prop of HTMLAttributes<HTMLSpanElement> from svelte/elements