Quick Props
Edit instantly, preview live
children
stringActions
Primary action trigger for critical and secondary flows.
Import Path
@/src/components/core/Button
Quick Props
Edit instantly, preview live
children
stringVariants
Button.tsx
import { Button } from "@/src/components/core/Button"
<Button variant="primary" size="md" loading={false} disabled={false}>
Book a Session
</Button>Docs Source
Installation & Quick Start
Team-aligned setup template for install, import path, and first usage.
Installation requirements
npx shadcn@latest add button
npm install @base-ui/react
Visual Requirements
Validate these patterns directly in the live component preview before release.
Keep icon + label spacing consistent for supportive CTAs.
Requirement: Use leftIcon/rightIcon according to reading direction.Show loading in-place during submission and payment actions.
Requirement: loading={true}For peer actions, keep buttons aligned in one row with stable spacing.
Requirement: Group layout with consistent gapButton State & Variant Matrix
Review the important variants and states for this component on mobile and desktop before release.
primary variant
children="Book a Session" variant="primary"The primary variant should stay readable across mobile and desktop.
secondary variant
children="Explore Tools" variant="secondary"The secondary variant should stay readable across mobile and desktop.
ai variant
children="Run AI Analysis" variant="ai" iconPlacement="start"The ai variant should stay readable across mobile and desktop.
Loading
loading={true}Loading should be visible at the component level.
Disabled
disabled={true}Disabled state should be muted while remaining legible.
Hero primary CTA
Use for the highest-value action in the first viewport.
Product Documentation Template
This structure should stay consistent across components and products so teams and agents ship with the same quality bar.
Pre-release Alignment Checklist
Documentation Ownership Contract
Active component: Button
@/src/components/core/Button
Usage
Use one primary action per section to keep decision clarity.
Accessibility
Always provide meaningful text labels and avoid icon-only critical actions.
Do
Reliable product usage patterns
Don't
Release risks to remove before shipping
Documentation has not been completed for this component yet.