# Components Button: Rotate Buttons

Buttons that rotate an icon or the whole label on hover. Add subtle motion to refresh, settings, and other action icons across your app today.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/buttons/rotate-buttons
- Collection: [Components](https://www.shadcn-ui-blocks.com/blocks/components), Free tier
- Group: [Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/components/buttons/rotate-buttons.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-buttons-rotate-buttons
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/components-buttons-rotate-buttons.json"`.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/components/buttons/rotate-buttons`

## About this block

Rotate Buttons shows five standard button variants arranged in a single
centered, wrapping row. Each variant covers a common role: a filled primary
action, a muted secondary action, a destructive warning action, a stroked
outline action, and a minimal ghost action. When a visitor hovers any button,
the whole button tilts a few degrees before snapping back, giving the row
a light sense of life without changing color or shape.

Every button is independent. You can keep just the variants you need, change
the label text, or drop a single button anywhere a standalone call to action
is required. The row wraps naturally on smaller screens so the layout stays
intact without extra work.

## When to use

Reach for this block when you want to introduce motion feedback to a button
set without committing to a strong visual effect like a fill sweep or a pulse
glow. It fits well on course catalog pages, lesson dashboards, and enrolment
flows in an online education platform where friendly, unobtrusive motion
reinforces an approachable tone. It works equally well as a quick reference
panel in a component library or style guide, letting teams preview every
button role in one place.

A natural flow around it on a Components page:

**Before**

- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) to give the buttons a containing surface
  and show them in a realistic layout context
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) as a status indicator sitting above the
  row to set visual hierarchy before the actions

**After**

- [Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts) to show feedback messages that follow
  after a button action is triggered
- [Interactive Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/interactive-buttons) if
  you need richer state changes like loading or success transitions beyond
  the tilt

## What you can customize

Any of the five variant slots can hold a different label or be removed to
match your actual action set:

- **Variant selection.** Keep only the roles you use. A flow that only needs
  a primary and a destructive confirm can drop the other three without any
  adjustment.
- **Label copy.** Replace the generic labels with the real action names in
  your product so the button set reads as live UI from the start.
- **Row layout.** The wrapping flex row adapts to narrow containers, so you
  can embed this set inside a card or a sidebar column without added markup.

> Tip: pair the rotate effect with a short transition duration so the tilt
> stays snappy; a slow rotation can feel heavy for small interactive elements.

## More in Components Buttons

- [Border Animation Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/border-animation-buttons)
- [Cut Corners Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/cut-corners-buttons)
- [Extra Large Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/extra-large-buttons)
- [Extra Small Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/extra-small-buttons)
- [Grow Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/grow-buttons)
- [Interactive Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/interactive-buttons)
- [Liquid Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/liquid-buttons)
- [Morphing Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/morphing-buttons)
- [Pixel Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/pixel-buttons)
- [Pulse Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/pulse-buttons)
- [Shadow Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/shadow-buttons)
- [Skew Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/skew-buttons)
- [Slide Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/slide-buttons)
- [Social Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/social-buttons)
- [Squeeze Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/squeeze-buttons)
- [Underline Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/underline-buttons)
