21st

Attachment Button

Buttons 3

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 />
    </div>
  );
}

Dependencies

More by 21st

View all
  • Spline Scene

    Spline Scene

    9.9K
  • Testimonials with Marquee

    Testimonials with Marquee

    2.5K
  • Gradient Button

    Gradient Button

    2.1K
  • Pixel Canvas

    Pixel Canvas

    936
  • Animated Blur Number

    Animated Blur Number

    841
  • Balloons

    Balloons

    820
  • Empty State

    Empty State

    812
  • Status Badge

    Status Badge

    707

More in Buttons

View all
  • Button

    Button

    166
  • Button

    Button

    21
  • Texture Button

    Texture Button

    119
  • Figma File Button

    Figma File Button

    39
  • Native Button

    Native Button

    12
  • Button

    Button

    86
  • HeroUI Button Group

    HeroUI Button Group

    11
  • Great UI Button

    Great UI Button

    19