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

PropTypeDescription
childrenReact.ReactNodeButton label or content.
onClick?() => voidOptional click handler.
className?stringOptional additional class names for the button.