Rendyn

Component library

189 components

Interaction

Animated CTA Buttons

Animated CTA Buttons includes expanding, hold and slide patterns; choose the gesture that fits the action rather than applying every variant.

React Tailwind CSS

Practical React example

Give a booking or contact action a visible label and a subtle arrow reveal.

Before you copy and paste

Keep the example in the React rendering environment required by the imported component. Copy components/motion/expanding-arrow-button.tsx and its returned support files from the Code tab; preserve the project-relative paths.

Listed package dependencies: clsx, motion, react, tailwind-merge.

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

Give a booking or contact action a visible label and a subtle arrow reveal

// Usage adapted from beUI's pinned MIT source.
// Copyright (c) 2026 Saurabh Chauhan. See ./LICENSES.md.
"use client";

import { ExpandingArrowButton } from "@/components/motion/expanding-arrow-button";

export function ExpandingArrowButtonPreview() {
  return (
    <div className="flex items-center justify-center">
      <ExpandingArrowButton>Book a demo</ExpandingArrowButton>
    </div>
  );
}

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

The expanding-arrow example uses a normal button child label. Wire navigation or submission explicitly and make the result of the action visible outside its animation.

Customization

ExpandingArrowButtonProps.children
Required; ReactNode.
ExpandingArrowButtonProps.accentClassName
Optional; string.
ExpandingArrowButtonProps.labelClassName
Optional; string.
HoldActionButtonProps.children
Required; ReactNode.
HoldActionButtonProps.type
Optional; "vertical" | "horizontal".
HoldActionButtonProps.holdingLabel
Optional; ReactNode.
HoldActionButtonProps.completeLabel
Optional; ReactNode.
HoldActionButtonProps.holdDuration
Optional; number.
HoldActionButtonProps.onHoldComplete
Optional; () => void.
HoldActionButtonProps.fillClassName
Optional; string.
HoldActionButtonProps.labelClassName
Optional; string.
SlideActionButtonProps.children
Required; ReactNode.
SlideActionButtonProps.completeLabel
Optional; ReactNode.
SlideActionButtonProps.threshold
Optional; number.

Integration notes

  • A completed hold or slide gesture is only UI intent; validate the real action separately.
  • Keep an ordinary keyboard-accessible way to perform an action when a drag or hold gesture is unsuitable.

Component source: beUI 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