Label
Uppercase, tracked, muted kicker that names a scene or page section.
Una idea a la vez
Install
npx shadcn@latest add @jbm/labelNeeds the @jbm entry in components.json; see Install once.
Also installs @jbm/tokens.
Usage
import { Label } from "@/jbm/ui/label"<Label>Una idea a la vez</Label>import { Label } from "@/jbm/ui/label"import { color } from "@/jbm/lib/tokens"<Label style={{ color: color.soft }}>Dark</Label>Props
- Stage
fluidA 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.
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | required | Kicker text; rendered uppercase regardless of the source casing. |
style | React.CSSProperties | none | Inline 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.