Skip to content
Ballpoint

Marker

A small note in the middle of a conversation: a status, a system message, or a label written into a pen rule.

From shadcn/ui
Built on Base UI Use Render
Explored 4 files
Switched to the redesign branch
Searched the docs for "torn paper"

Installation

pnpm dlx shadcn@latest add @ballpoint/marker

Usage

tsx
import { Marker, MarkerContent, MarkerIcon } from "@/components/ui/marker"

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

Examples

Separator

A label with a pen rule either side, for dates and breaks.

Yesterday

The pen ran dry halfway down the page.

Today

Status

role="status" and a spinner, so the update is announced; the words pulse while the work goes on.

Drawing the margin note…

Render the marker as an element that can be pressed.

Opened letter-to-ada.md

API reference

variant
default "default"
"default" | "border" | "separator"

Inline; with a rule drawn under it; or centred between two rules.

render
ReactElement

Render the marker as a link or a button.

MarkerIcon
span

A decorative icon, hidden from assistive technology.

markerVariants
cva

Exported for building your own marker styles.

Every other prop goes to Base UI's Use Render.