Skip to content

Commit ba49a1d

Browse files
committed
Add button variant to Link component
1 parent d14a41f commit ba49a1d

File tree

1 file changed

+3
-2
lines changed
  • application/shared-webapp/ui/components

1 file changed

+3
-2
lines changed

application/shared-webapp/ui/components/Link.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { tv } from "tailwind-variants";
77
import { focusRing } from "./focusRing";
88

99
interface LinkProps extends AriaLinkProps {
10-
variant?: "primary" | "secondary" | "destructive" | "ghost";
10+
variant?: "primary" | "secondary" | "destructive" | "ghost" | "button";
1111
underline?: boolean | "hover";
1212
size?: "md" | "sm" | "lg";
1313
}
@@ -20,7 +20,8 @@ const styles = tv({
2020
primary: "text-primary hover:text-primary/90",
2121
secondary: "text-secondary-foreground hover:text-secondary-foreground/90",
2222
destructive: "text-destructive hover:text-destructive/90",
23-
ghost: "text-accent-foreground hover:bg-hover-background hover:text-accent-foreground/90"
23+
ghost: "text-accent-foreground hover:bg-hover-background hover:text-accent-foreground/90",
24+
button: "hover:opacity-90"
2425
},
2526
underline: {
2627
true: "underline disabled:no-underline",

0 commit comments

Comments
 (0)