Marker

A note between messages: a date, a status or a divider.

@cupertinoui/markerRegistry JSON

Installation

pnpm dlx shadcn@latest add @cupertinoui/marker

The first install also adds the macOS theme. See Installation to set up the registry.

Usage

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

<Marker variant="separator">
  <MarkerContent>Today 09:41</MarkerContent>
</Marker>

API Reference

Every part forwards the props of the underlying element. The props below are the ones CupertinoUI adds or changes.

Marker

PropTypeDescription
variant"default" | "separator" | "border"
Default: "default"
Plain, between lines, or above a rule.
classNamestringExtra classes, merged with the component's own.

MarkerIcon / MarkerContent

PropTypeDescription
classNamestringExtra classes, merged with the component's own.