Skip to content

Commit 7e3bf3f

Browse files
sdignumclaude
authored andcommitted
feat(apollo-vertex): add destructive-outline button variant
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e9acc16 commit 7e3bf3f

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

apps/apollo-vertex/app/shadcn-components/button/page.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ Displays a button or a component that looks like a button.
88
<div className="p-4 border rounded-lg mt-4 flex flex-wrap gap-2">
99
<Button>Default</Button>
1010
<Button variant="secondary">Secondary</Button>
11-
<Button variant="destructive">Destructive</Button>
1211
<Button variant="outline">Outline</Button>
1312
<Button variant="ghost">Ghost</Button>
13+
<Button variant="destructive">Destructive</Button>
14+
<Button variant="destructive-outline">Destructive outline</Button>
1415
<Button variant="link">Link</Button>
1516
</div>
1617

apps/apollo-vertex/registry/button/button.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,22 @@ const buttonVariants = cva(
1010
variants: {
1111
variant: {
1212
default: "bg-primary text-primary-foreground hover:bg-primary/90",
13+
secondary:
14+
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
15+
outline:
16+
"border bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
17+
ghost:
18+
"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
1319
destructive:
1420
"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
21+
"destructive-outline":
22+
"border border-destructive bg-background text-destructive shadow-xs hover:bg-destructive hover:text-white focus-visible:ring-destructive/20 dark:bg-input/30 dark:hover:bg-destructive/60 dark:focus-visible:ring-destructive/40",
23+
link: "text-primary underline-offset-4 hover:underline",
1524
success:
1625
"bg-success text-white hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40 dark:bg-success/60",
1726
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info/20 dark:focus-visible:ring-info/40 dark:bg-info/60",
1827
warning:
1928
"bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning/20 dark:focus-visible:ring-warning/40 dark:bg-warning/60",
20-
outline:
21-
"border bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
22-
secondary:
23-
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
24-
ghost:
25-
"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
26-
link: "text-primary underline-offset-4 hover:underline",
2729
},
2830
size: {
2931
default: "h-9 px-4 py-2 has-[>svg]:px-3",

0 commit comments

Comments
 (0)