Skip to content
GitHub11 stars

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
<div class="flex w-full max-w-sm flex-col gap-8 py-12">
    <Marker>
        <MarkerIcon><Icon Data="LucideIcons.GitBranch" /></MarkerIcon>

The Marker component displays inline conversation markers such as status updates, system notes, bordered rows, and labeled separators. Compose it with Message in a conversation thread.

Installation

dnx Blazix.Cli add marker

Usage

<Marker>
    <MarkerIcon><Icon Data="LucideIcons.Check" /></MarkerIcon>
    <MarkerContent>Explored 4 files</MarkerContent>
</Marker>

Composition

Use the following composition to build a marker:

Marker
├── MarkerIcon
└── MarkerContent

Features

  • Inline marker, bordered row, and labeled separator variants
  • Decorative icon slot that is hidden from assistive tech
  • Polymorphic root via Render for link and button markers
  • Pairs with the shimmer utility for streaming status text
  • Customizable styling through the Class parameter on every part

Variants

Use Variant to switch between an inline marker, bordered row, and labeled separator.

A default marker for inline notes.
A separator marker
A border marker for row boundaries.
<div class="flex w-full max-w-sm flex-col gap-8 py-12">
    <Marker><MarkerContent>A default marker for inline notes.</MarkerContent></Marker>
    <Marker Variant="MarkerVariant.Separator"><MarkerContent>A separator marker</MarkerContent></Marker>
    <Marker Variant="MarkerVariant.Border"><MarkerContent>A border marker for row boundaries.</MarkerContent></Marker>
</div>
VariantDescription
defaultAn inline marker for status, notes, and actions.
borderA default marker with a bottom border under the row.
separatorA centered label with divider lines on each side.

Status

Set role="status" and include a Spinner for streaming or in-progress markers so updates are announced.

Compacting conversation
Running tests
<div class="flex w-full max-w-sm flex-col gap-8 py-12">
    <Marker role="status">
        <MarkerIcon><Spinner /></MarkerIcon>

Shimmer

Add the shimmer utility class to MarkerContent for an animated streaming-text effect. The utility ships in Styles/Vendor/variants.css, which init adds to your app.

Thinking...
Reading 4 files
<div class="flex w-full max-w-sm flex-col gap-8 py-12">
    <Marker role="status"><MarkerContent Class="shimmer">Thinking...</MarkerContent></Marker>
    <Marker Variant="MarkerVariant.Separator" role="status">
        <MarkerContent Class="shimmer">Reading 4 files</MarkerContent>
    </Marker>
</div>

Separator

Use the separator variant for labeled dividers, such as dates or section breaks, in a conversation. A Checkpoint is a separator with a button that restores the thread to that point.

Today
Worked for 42s
Conversation compacted
<div class="flex w-full max-w-sm flex-col gap-8 py-12">
    <Marker Variant="MarkerVariant.Separator"><MarkerContent>Today</MarkerContent></Marker>
    <Marker Variant="MarkerVariant.Separator"><MarkerContent>Worked for 42s</MarkerContent></Marker>
    <Marker Variant="MarkerVariant.Separator"><MarkerContent>Conversation compacted</MarkerContent></Marker>
</div>

Border

Use the border variant for status rows that should keep the default marker alignment while separating the next row.

Switched to release-candidate
Reviewed 8 related files
Opened implementation notes
<div class="flex w-full max-w-sm flex-col gap-3 py-12">
    <Marker Variant="MarkerVariant.Border">
        <MarkerIcon><Icon Data="LucideIcons.GitBranch" /></MarkerIcon>

With Icon

Use MarkerIcon to render an icon alongside the content. Use flex-col to stack the icon above the content.

Switched to a new branch
Explored 4 files
Syncing completed
<div class="flex w-full max-w-sm flex-col gap-12 py-12">
    <Marker>
        <MarkerIcon><Icon Data="LucideIcons.GitBranch" /></MarkerIcon>

Turn a marker into a link or button with the Render parameter on Marker.

View the pull request
@inject ToastManager Toasts

<div class="flex w-full max-w-sm flex-col gap-8 py-12">
<Marker>
    <Render Context="marker">
        <a @attributes="marker.Attributes" href="#">
            <MarkerContent>View the pull request</MarkerContent>
        </a>
    </Render>
</Marker>

Accessibility

Marker 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 forwards role to the underlying element.

<Marker role="status">
    <MarkerIcon><Spinner /></MarkerIcon>
    <MarkerContent>Compacting conversation</MarkerContent>
</Marker>

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.

<Marker Variant="MarkerVariant.Separator"><MarkerContent>Today</MarkerContent></Marker>

Bordered Markers

A bordered marker keeps the same semantics as the default marker. The bottom border is decorative, so choose role="status", Render, or no role based on the marker's purpose.

<Marker Variant="MarkerVariant.Border">
    <MarkerIcon><Icon Data="LucideIcons.FileText" /></MarkerIcon>
    <MarkerContent>Opened implementation notes</MarkerContent>
</Marker>

Decorative Icons

MarkerIcon is decorative and hidden from assistive tech with aria-hidden, so the adjacent MarkerContent carries the meaning. For an icon-only marker, provide an aria-label or visible text so it is not announced as empty.

<Marker aria-label="Synced">
    <MarkerIcon><Icon Data="LucideIcons.Check" /></MarkerIcon>
</Marker>

Interactive Markers

When a marker links or triggers an action, render it as a real <button> or <a> with the Render parameter so it is focusable and exposes the correct role. The accessible name comes from the marker text.

<Marker>
    <Render>
        <a @attributes="context.Attributes" href="/files">
            <MarkerIcon><Icon Data="LucideIcons.FileText" /></MarkerIcon>
            <MarkerContent>Explored 4 files</MarkerContent>
        </a>
    </Render>
</Marker>

RTL

To enable RTL support in Blazix, see the RTL configuration guide.

Translated with AI for the demo, so it may have mistakes.

تم التبديل إلى فرع جديد
جارٍ التفكير...
تم ضغط المحادثة
تم استكشاف ٤ ملفات
<div class="flex w-full max-w-sm flex-col gap-8 py-12">
    <Marker>
        <MarkerIcon><Icon Data="LucideIcons.GitBranch" /></MarkerIcon>

API Reference

Marker

ParameterTypeDefault
Render RenderFragment<UseRenderProps>? -
Variant MarkerVariant MarkerVariant.Default
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.

MarkerContent

ParameterTypeDefault
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.

MarkerIcon

ParameterTypeDefault
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.