Expandable Icon Toggle 1
A compact toggle that expands on hover to reveal all options, collapsing back to show only your selection. Component used in Colouring Page.
Installation 30s
Run Claude Code then copy and paste this command
Sign In to Build
Join with a free account
Claude Code will install this into the /src/components folder in your project
Tell Claude Code where you want to use this
Description
A space-saving toggle that shows just the selected icon until you hover over it.
When you hover, it smoothly expands to reveal all options with a sliding highlight animation. The default setup handles portrait, landscape, and square orientations, but you can pass in any icons and labels you want.
Pass your own options array to customize the icons and values. The onChange callback fires whenever someone picks a new option, so you can hook it up to your state management.
Built with Framer Motion for the spring animations and shadcn tooltips that appear when expanded.
Key Features
Use Cases
Frequently Asked Questions
Your Idea to AI Business In Days
Join Dan, Zehra and 0 others building AI businesses in days with video tutorials and 1 on 1 support.
Used In
Dependencies
These will be automatically installed when you add this component to your project.
Join 0 others building with AI
