ComponentsClip Corners Button
Clip Corners Button
A rectangular button with clipped corners that animate outward on hover.
Code
1
Install with shadcn Beta
Terminal
npx shadcn@latest add "https://smoothui.dev/r/clip-corners-button.json"
Or install the demo
Terminal
npx shadcn@latest add "https://smoothui.dev/r/clip-corners-button-demo.json"
How to use
Demo.tsx
import ClipCornersButton from "@/components/smoothui/ui/ClipCornersButton"
export default function ClipCornersButtonDemo() {
return (
<div className="flex min-h-[200px] flex-col items-center justify-center gap-6">
<ClipCornersButton>CLIP-CORNERS</ClipCornersButton>
</div>
)
}
Props
Prop | Type | Description |
---|---|---|
children | React.ReactNode | Button label or content. |
onClick? | () => void | Optional click handler. |
className? | string | Optional additional class names for the button. |