Discover 2 Buttons Components
Animated Buttons for React and Tailwind CSS
Animated buttons for React: call-to-action buttons with motion built in that draw the eye and confirm each click. Each one is a React button component styled with Tailwind CSS v4.
What is an animated button?
An animated button is a button with motion built in, such as a glow on hover, a pull toward the cursor or a ripple on click. The motion tells people the button is clickable and gives their click instant feedback.
Buttons are where visitors decide to act, so a little button UI animation does more work here than almost anywhere else on a page. The best cool buttons in UI design stay readable and fast: the motion lasts a fraction of a second and never hides the label. Each animated button here is a React button component styled with Tailwind CSS v4, and it's part of our React components.
How to add an animated button to your website
Run one CLI command, copy the source or paste an AI prompt. Whichever you pick, the code ends up in your project as a file you can edit.
- Pick one from the grid, open the live preview, and adjust colors, fonts and motion in the Customize panel.
- Install it with the CLI. Run
npx motionuikit@latest add <name>in your project folder (Node.js 20 or newer). It writescomponents/motionuikit/ui/<name>.tsx, undersrc/if your project has one, and installs the npm packages it needs. See the CLI guide. - Or copy it by hand. Copy the file from the page and install the npm packages it lists, or paste the AI prompt into Cursor, Claude, v0, Lovable, Bolt or any AI tool with a terminal.
- Use it. Import it from
@/components/motionuikit/ui/<name>, place it on a page and adjust the props.
Browse other component categories
Components are grouped by what they do on a page.
- 3D elements: Three.js objects and scenes for your pages. For a focal point that adds depth next to a headline or a feature.
- Text effects: headings and text that move. For the line you most want people to read, such as a headline or a key number.
- All React components: every category in one grid, which you can filter by style.
Frequently asked questions
Use a CSS transition on properties like transform, box-shadow or background, triggered by :hover,
:focus-visible and :active. Animated buttons in CSS are light and quick. For effects that follow the cursor or
react to clicks, a small React component is easier.
It is fast, under about 300 milliseconds, it confirms what happened, and it never moves the button away from the cursor. Good button UI animation also works on keyboard focus, not just hover, and tones down when a visitor prefers reduced motion.
They can draw attention to your main call to action, which helps when visitors miss it. The gain comes from making the button easier to notice and more satisfying to press, not from the motion alone, so keep the label clear and test changes.
No. Animate the one or two buttons that matter most, like the main call to action, and keep the rest calm. If every button moves, none of them stands out, and the page starts to feel busy.
They can be. Keep the label readable throughout the animation, show a visible focus style for keyboard users, keep contrast high and respect the reduced-motion setting. The button must work the same with or without the effect.
Each component is marked Free or Pro. Browsing and live previews of free ones need no account; copying code or installing needs a free account. Pro components need a paid plan, which also includes every Pro section and template. See plans and limits.
Run npx motionuikit@latest add <name> in your project with Node.js 20 or newer. It writes the file to components/motionuikit/ui/ and installs the npm packages it needs. You can also copy the source from the page or paste its AI prompt into your editor.
React, in Next.js, Vite and Astro. Components are written in TypeScript; in a JavaScript project, the CLI converts them to .jsx and .js as it installs them. In Astro, it adds the React integration, and you render the component with client:load.
Yes. The Customize panel on each component page changes colors, fonts and motion in the live preview, and you can save a look you like as a variant on your account. Once it's installed, the source is yours to edit directly.
Yes. The license covers unlimited projects, client work included, and you keep everything you installed after your plan ends. You can't resell the components as your own UI kit, template or design file, or use them to build a competing product.


