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 icon="paperclip" onClick={() => console.log("clicked")} />
</div>
);
}















