Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add button component 52 #100

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/buttons/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const files = [
"button-49",
"button-50",
"button-51",
"button-52",
];

export default function Page() {
Expand Down
18 changes: 18 additions & 0 deletions components/buttons/button-52.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Dependencies: pnpm install lucide-react

import { Button } from "@/components/ui/button";
import { ChevronRight } from "lucide-react";

export default function Button52() {
return (
<Button className="group relative bg-primary text-primary-foreground hover:bg-primary/90">
Button
<ChevronRight
className="w-0 translate-x-[100%] pl-0 opacity-0 transition-all duration-200 group-hover:w-5 group-hover:translate-x-2 group-hover:opacity-100"
size={16}
strokeWidth={2}
aria-hidden="true"
/>
</Button>
);
}