Skip to content

Commit c3e12ac

Browse files
Copilothotlong
andcommitted
Add JSDoc documentation for Button variants and final polish
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 544740f commit c3e12ac

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/ui/src/components/Button.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ import { cva, type VariantProps } from "class-variance-authority"
44

55
import { cn } from "../lib/utils"
66

7+
/**
8+
* Button variants following Apple's design language:
9+
* - default: Filled blue button (primary actions)
10+
* - tinted: Apple-style tinted button with subtle background
11+
* - destructive: Red button for delete/destructive actions
12+
* - outline: Secondary button with border
13+
* - secondary: Subtle gray background
14+
* - ghost: Minimal button with hover effect
15+
* - link: Text-only link style
16+
*/
717
const buttonVariants = cva(
818
"inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-apple focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-40 active:scale-[0.98]",
919
{

0 commit comments

Comments
 (0)