Avijit Dey

X Icon

Buttons

About

An animated close/X icon that rotates and scales on hover, for use in buttons, dialogs, and dismissible UI elements.

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

Code

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

Usage.tsx

import { XIcon } from "@/components/ui/lu-x";

export default function Preview() {
  return (
    <div className="flex min-h-[200px] w-full items-center justify-center">
      <XIcon 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
  • Button

    Button

    172
  • Texture Button

    Texture Button

    122
  • Button

    Button

    22
  • Button

    Button

    89
  • Button Group

    Button Group

    1
  • Button Group

    Button Group

    6
  • Button

    Button

    54
  • Native Button

    Native Button

    17