jsp-dsv0.1

Buttonshadcn

Triggers an action. One primary button per view.

Actions
Install
npx shadcn add button
Import from
@/components/ui/button
Guidance
draft · v0.1.0

Examples

As installed from shadcn – rendering in jsp-ds tokens through the bridge.

One primary action per view, with an outline button beside it.
Six variants: default, secondary, outline, ghost, link and destructive.
Four sizes and icon-only buttons. Icon-only buttons need an aria-label.
Icons sit before or after the label with data-icon; loading keeps the button's width.

Guidance

Spec

The variables this component reads, and the jsp-ds token behind each, resolved live. Switch mode to see them change.

TokenCSS variableValue now
color.action.primary.backgroundDefault fill--primary…
color.action.primary.textDefault label--primary-foreground…
color.action.tertiary.backgroundSecondary fill (D5)--secondary…
color.action.ghost.background-hoverGhost and outline hover--accent…
color.action.destructive.text--destructive…
color.focus.ring--ring…
radius.mdshadcn's control radius--radius-md…

Install

Terminal
npx shadcn add button
Import
import { Button } from "@/components/ui/button"

From shadcn’s own registry. Don’t edit the installed file – jsp-ds styles it through the bridge, and fixes go in styles/overrides.css with an issue.