Avijit Dey

Cancel Square Icon

Buttons

About

An animated cancel/close icon inside a rounded square that plays a pulse-and-rotate X animation on hover, for use in buttons, toolbars or dismiss actions.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Cancel Square Icon to your project and fits it to your theme.

Code

How Cancel Square Icon is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { CancelSquareIcon } from "@/components/ui/hu-cancel-square";

export default function CancelSquareIconDemo() {
  return (
    <div className="flex min-h-[200px] w-full items-center justify-center">
      <CancelSquareIcon size={48} />
    </div>
  );
}

Dependencies

More by Avijit Dey

View all
  • Checkmark Circle Icon

    Checkmark Circle Icon

    1
  • Eye Icon

    Eye Icon

    1
  • Mouse Pointer Click Icon

    Mouse Pointer Click Icon

    1
  • VK Square Icon

    VK Square Icon

  • Bell Off Icon

    Bell Off Icon

  • Filter Icon

    Filter Icon

  • Shield User Icon

    Shield User Icon

  • Analytics Down Icon

    Analytics Down Icon

More in Buttons

View all
  • Texture Button

    Texture Button

    108
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    44
  • Button Save

    Button Save

    50
  • App Store Button

    App Store Button

    484
  • Base Button

    Base Button

    1