jbmui

Label

  • UI

Uppercase, tracked, muted kicker that names a scene or page section.

Una idea a la vez

Install

npx shadcn@latest add @jbm/label

Needs the @jbm entry in components.json; see Install once.

Also installs @jbm/tokens.

Usage

Section kicker
import { Label } from "@/jbm/ui/label"<Label>Una idea a la vez</Label>
On a dark card
import { Label } from "@/jbm/ui/label"import { color } from "@/jbm/lib/tokens"<Label style={{ color: color.soft }}>Dark</Label>

Props

Stage
fluid

A block div that fills its container's width. One line is 26px type at the font's normal line height (not set explicitly, so the exact height depends on Geist's metrics); long text wraps and adds lines.

Block-level Geist sans kicker at 26px, weight 600, 4px letter spacing, uppercase, in the dim token color. Sits top-left of a scene or above a section.

PropTypeDefaultDescription
childrenReact.ReactNoderequiredKicker text; rendered uppercase regardless of the source casing.
styleReact.CSSPropertiesnoneInline styles merged last; override color (for example color.soft on dark cards) or fontSize here.

QA checks

  • Confirm the text renders uppercase with visible tracking in the dim color on cream.
  • Check a long kicker wraps cleanly inside the safe area, and that style overrides (color on dark surfaces) keep readable contrast.