21st

Attachment Button

Buttons 14

About

Round attachment trigger button — plus or paperclip preset, or any custom icon. Self-contained port from 21st.dev Agent Elements.

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

Code

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

Usage.tsx

import { AttachmentButton } from "@/components/ui/attachment-button";

export default function Demo() {
  return (
    <div className="flex h-full w-full items-center justify-center p-8">
      <AttachmentButton onClick={() => console.log("clicked")} />
    </div>
  );
}

Dependencies

More by 21st

View all
  • Spline Scene

    Spline Scene

    9.8K
  • Testimonials with Marquee

    Testimonials with Marquee

    2.4K
  • Gradient Button

    Gradient Button

    2K
  • Pixel Canvas

    Pixel Canvas

    928
  • Animated Blur Number

    Animated Blur Number

    836
  • Empty State

    Empty State

    801
  • Balloons

    Balloons

    793
  • Status Badge

    Status Badge

    695

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