Skip to content
Magic UI SolidMagicUI Solid

Interactive Hover Button

A visually engaging button component that responds to hover with dynamic transitions, adapting smoothly between light and dark modes for enhanced user interactivity.

@/demos/InteractiveHoverButtonDemo.tsx
import { InteractiveHoverButton } from '@/registry/magicui/interactive-hover-button'
export function InteractiveHoverButtonDemo() {
return <InteractiveHoverButton>Hover Me</InteractiveHoverButton>
}
Terminal window
pnpm dlx shadcn@latest add @magicui-solid/interactive-hover-button
import { InteractiveHoverButton } from '@/components/magicui/interactive-hover-button'
<InteractiveHoverButton>Interactive Hover Button</InteractiveHoverButton>
Prop Type Default Description
class string - Additional class names to style the component
children JSX.Element - The content to be displayed inside the button

Credit to @AayushBharti for the inspiration behind this component.

Original:

magicui.design/docs/components/interactive-hover-button