Marker

new

Explored 4 files. An inline status, a bordered row or a labelled separator in a conversation.

Demo
Switched to a new branch
Thinking…
Conversation compacted
Explored 4 files

Open Props in the corner of the example to try variant and color. Without color a marker is muted; with one, the text, the icon and the lines take that colour role, as an unread separator does. Any name declared on [data-slot][data-color] works too.

default is an inline note. border draws a line under the row. separator centres the label between two lines.

Installation

Usage

<script setup lang="ts">
import { Marker, MarkerContent, MarkerIcon } from '@/components/ui/marker'
</script>

<template>
  <Marker>
    <MarkerIcon>
      <CheckIcon />
    </MarkerIcon>
    <MarkerContent>Explored 4 files</MarkerContent>
  </Marker>
</template>

A marker is a quiet line between the louder parts of a conversation or a log: what an agent just did, where the day changes, where unread messages start. Ported from shadcn-vue, with a colour axis. Pair it with the shimmer utility for a status that is still running.

Examples

With as-child, a marker renders your <a> or <button>, so it is focusable and announced as what it is. A link is underlined.

Links and buttons
View the pull request

API Reference

class is also accepted on every part and merged over its classes.

Data attributes

data-slotAttributesDescription
markerdata-variant, data-colorThe row.
marker-icon—The icon, hidden from assistive technology.
marker-content—The text.

Accessibility

Give a marker that updates while something runs role="status", so a screen reader announces the change. A separator with a label needs no role: its lines are decorative pseudo-elements, and role="separator" would hide the label, since a separator takes its name from aria-label only. MarkerIcon is hidden from assistive technology, so a marker with only an icon needs an aria-label.

Changelog

  1. registry 0.17.0

    7951a0f — New Marker: an inline status, a bordered row or a labelled separator, from shadcn-vue, with a color. New Banner: a full-width notice with a title, a subtitle, actions and a close button, v-model:open and color. New Tour: parts over Popover for a guided tour driven by useTour. Skeleton takes a color.