Skip to content
loseta

Components / Conversation

Marker

An inline note, status or divider between conversation turns.

Status stable
Assistant is thinking…
<div class="marker">
  <span data-slot="icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg></span>
  <span data-slot="content">Assistant is thinking…</span>
</div>

Installation

pnpm dlx loseta add marker
npx loseta add marker

Examples

Variants

Assistant is thinking…
Today
Searched 3 sources · View sources
<div style="display: flex; flex-direction: column; gap: 1rem">
  <div class="marker">
    <span data-slot="icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg></span>
    <span data-slot="content">Assistant is thinking…</span>
  </div>
  <div class="marker" data-variant="separator">
    <span data-slot="content">Today</span>
  </div>
  <div class="marker" data-variant="border">
    <span data-slot="icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/></svg></span>
    <span data-slot="content">Searched 3 sources · <a href="#">View sources</a></span>
  </div>
</div>

Accessibility and behavior

  • Use data-variant="separator" for a divider and "border" for a trailing rule. The icon is decorative; put the status in the content text and use role="status" for live updates.

Files

components/marker.cssbase
styles/nova/marker.cssstyle

Install contract

The CLI writes the base file under components/, the visual file for the selected style under styles/<name>/, and any primitive dependency underprimitives/. The generated index.css imports them in the right layer order.

← Back to components

loseta is MIT licensed. Built with native CSS, no runtime. Inspired byshadcn/ui.