zeroUI

Marker

A note in the run of a conversation that nobody said: someone joined, a date, a reconnection. Small, quiet and leaning.

Install

terminal
# once per project: where @zeroui items come frompnpm dlx shadcn@latest registry add @zeroui=https://zeroui.catforest.dev/r/{name}.jsonpnpm dlx shadcn@latest add @zeroui/marker

Examples

A date, an event, an archive line

Tonight
Mara joined the channel
Earlier messages are archived
marker-kinds.tsx
import { InfoIcon } from "@/components/zero/icons";import { Marker, MarkerContent, MarkerIcon } from "@/components/zero/marker";export default function MarkerKinds() {  return (    <div className="grid w-full max-w-md gap-5">      <Marker variant="separator">        <MarkerContent>Tonight</MarkerContent>      </Marker>      <Marker>        <MarkerIcon>          <InfoIcon />        </MarkerIcon>        <MarkerContent>Mara joined the channel</MarkerContent>      </Marker>      <Marker variant="border">        <MarkerContent>Earlier messages are archived</MarkerContent>      </Marker>    </div>  );}

Behaviour

separator sets it between two quiet lines across the width; border puts a line under it. MarkerIcon puts an icon before it.

Props

Marker

PropTypeDefaultDescription
variant"default" | "separator" | "border""default"Plain, between lines, or over one.
renderReactElement—The element to render as.

MarkerIcon, MarkerContent