Home Components Button
React Button Components
38 free React buttons built with Tailwind CSS and shadcn/ui conventions. Copy the code or install with the shadcn CLI. Great for primary, icon, loading, and animated buttons.
Button 1 : Plain solid button using the default shadcn variant with no icon or extra styling.Button 2 : Pair of outline Prev and Next buttons with left and right arrow icons for pagination.Button 3 : Secondary Discard button beside a primary Save button for form action rows.Button 4 : Solid Explore More button whose trailing arrow slides right and grows on hover.Button 5 : Disabled solid button with a ban icon showing an unavailable action state.Button 6 : Solid button rendered at the small size preset for compact layouts.Button 7 : Solid button rendered at the large size preset for prominent calls to action.Button 8 : Extra small solid button with a 24px height and tiny text for dense toolbars.Button 9 : Disabled loading button with three bouncing dots animated after the Loading label.Button 10 : Sky blue gradient Upgrade button with a lightning icon whose gradient shifts on hover.Button 11 : Destructive Delete button with a red border, tinted red background and trash icon.Button 12 : Fully rounded pill button with a star icon for a Favorite action.Button 13 : Blue outlined Copy button with a light blue tint and copy icon.Button 14 : Dashed border Download button with a primary tint and download icon.Button 15 : Read-only URL field with a truncated link and an attached blue icon-only copy button.Button 16 : Soft blue Save button with a tinted background, no border and a save icon.Button 17 : Soft yellow Warning button with a tinted background and warning triangle icon.Button 18 : Square-cornered Cancel and Confirm pair in soft red and green with trailing circle icons.Button 19 : Ghost Back button whose left arrow nudges further left on hover.Button 20 : Text link styled as a button with an underline that grows from the center on hover.Button 21 : Row of outline icon-only social login buttons for Google, X, Facebook and GitHub.Button 22 : Stacked full-width Continue with Google, X, Facebook and GitHub buttons in brand colors.Button 23 : Outline Inbox button with a bell icon and a red count badge pinned to the corner.Button 24 : Solid profile button with a small avatar image beside the username handle.Button 25 : Link-style submit button that spins while loading, then shows a green or red result.Button 26 : Icon-only theme toggle that swaps between a yellow sun and a blue moon on click.Button 27 : Ghost icon-only menu toggle that switches between a hamburger and a close icon.Button 28 : Round secondary plus icon button with a tooltip reading Add new item.Button 29 : Outline icon-only bookmark toggle that fills the bookmark in blue when active.Button 30 : Icon-only destructive gradient button with an alert triangle and hover gradient shift.Button 31 : Get Started button with a primary color gradient that shifts position on hover.Button 32 : Outline Post button with the share icon inside a filled square tile on the left.Button 33 : Outline Inbox button with a mail icon and an inline 99+ destructive badge.Button 34 : Outline copy-to-clipboard button that animates the icon to a green check and shows Copied.Button 35 : Destructive gradient Delete button with a trash icon and a hover gradient shift.Button 36 : Outline icon-only messages button with a primary count badge on its top corner.Button 37 : Soft green icon-only button with a double checkmark for confirming or marking done.Button 38 : Outline notification bell icon button with a small bouncing sky blue dot indicator.
About React Button Components A React button triggers an action, such as submitting a form, opening a dialog, or saving a change. Watermelon UI buttons are built with Tailwind CSS and class-variance-authority, with variants like default, outline, secondary, ghost, destructive, and link, several sizes including icon sizes, and an asChild option. Add one with the shadcn CLI, then edit the variants to match your brand.
When to use it Primary and secondary actions on forms, cards, and dialogs. Icon-only toolbar actions like edit, copy, or delete. Call-to-action links on landing pages, using asChild with an anchor. When to use something else Use Button Group when several related actions should read as one connected control. Use Dropdown Menu when you have more actions than fit and want to tuck them behind one trigger. Use Switch when the control flips a setting on or off rather than running an action. Frequently asked questions How do I use a shadcn button as a link? Pass asChild and put an anchor or Next.js Link inside the Button. The button styles are applied to the link, so you keep correct link semantics.
How do I add a loading state to a shadcn button? Set disabled while the request runs and render a spinner icon before the label. Keeping the label visible stops the button from changing width.
How do I add a new button variant? Add a key to the variant object in buttonVariants in your button file. It becomes a typed option on the variant prop everywhere you use Button.
How do I make an icon-only button accessible? Use size="icon" and give the button an aria-label that describes the action. Screen readers have no text to read otherwise.
How to use React Button Components Start from a React project with Tailwind CSS and shadcn/ui set up. Next.js, Vite, Remix, and Astro all work. Run npx shadcn@latest add https://registry.watermelon.sh/r/button-1.json to add the source files to your project. Import it where you need it, then edit the Tailwind classes and design tokens to match your product. Dependencies installed with it: react-icons.
The code is yours: it lives in your repository, so there is no runtime package to keep updated. Watermelon UI is free and open source under the MIT license.
More: Free React components , UI library alternatives , guides .