Saurabh

Slide Action Button

Buttons 96

About

A draggable slider button that requires the user to drag its thumb to the end to confirm an action, springing back if released too early.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Slide Action Button to your project and fits it to your theme.

Code

How Slide Action Button is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import SlideActionButton from "@/components/ui/slide-action-button";

export default function SlideActionButtonDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-8">
      <SlideActionButton
        completeLabel="Confirmed"
        onComplete={() => console.log("confirmed")}
      >
        Slide to confirm
      </SlideActionButton>
    </div>
  );
}

Dependencies

More by Saurabh

View all
  • BeUI Tilt Card

    BeUI Tilt Card

    390
  • BeUI Expandable Tabs

    BeUI Expandable Tabs

    373
  • BeUI File Upload

    BeUI File Upload

    310
  • Animated Sidebar

    Animated Sidebar

    294
  • BeUI Bouncy Accordion

    BeUI Bouncy Accordion

    220
  • Loader

    Loader

    214
  • BeUI Create Menu

    BeUI Create Menu

    207
  • BeUI Expanable Action Bar

    BeUI Expanable Action Bar

    207

More in Buttons

View all
  • Texture Button

    Texture Button

    108
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    44
  • Button Save

    Button Save

    50
  • App Store Button

    App Store Button

    484
  • Base Button

    Base Button

    1

Explore more

Part of beUi — browse the full library on 21st.dev.