Rendyn

Component library

189 components

Interaction

Interactive Hover Button

Interactive Hover Button applies a visual transition around native button content.

Interactive exampleReact Tailwind CSS

Practical React example

Give one labelled action a hover treatment without changing its accessible purpose.

Before you copy and paste

Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/interactive-hover-button.tsx and its returned support files from the Code tab; preserve the project-relative paths.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Give one labelled action a hover treatment without changing its accessible purpose

// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';

import { InteractiveHoverButton } from "@/components/magicui/interactive-hover-button"

export function ComponentExample() {
  return (
    <InteractiveHoverButton>Interactive Hover Button</InteractiveHoverButton>
  );
}

Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.

Use real text children and the appropriate type and handler. Keep the action recognizable in the resting state before any pointer movement.

Customization

type / disabled / onClick
Native button attributes control the actual action. Set type="button" for a non-submit action inside a form and connect disabled to the application’s state.

Integration notes

  • The action must remain understandable on touch and from the keyboard.
  • Check that the moving decoration does not conceal the label or focus indicator.

Component source: Magic UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP