Shadcn.io is not affiliated with official shadcn/ui
Expand Button
Button that expands wider on hover revealing an icon or extra content for React.
Compact until needed. Hover and the button smoothly grows wider, revealing a hidden icon that slides into view. It's space-efficient design—keep your UI clean but reward curiosity. Perfect for action buttons in tight spaces like tables, cards, or toolbars. The expansion is quick and smooth, never jarring. The icon adds context without cluttering the default state.
Expand Button preview
Loading...
Scroll to load preview
Installation
Install
Pro button
Related Components
Arrow Button
Animated arrow on hover
Input Button
Expandable input field
Icon Button
Animated icon states
Slide Reveal Button
Layers slide apart
Swipe Button
Color swipe fill
Morph Button
Shape morphing