erictsai83

Sliding Play Button

Buttons

About

A circular media toggle built from three overlapping SVG elements that compress, slide, expand, and settle together with an optional duration override.

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

Code

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

Usage.tsx

"use client";

import * as React from "react";

import { SlidingPlayButton } from "@/components/ui/ericts-sliding-play-button";

export default function Preview() {
  const [playing, setPlaying] = React.useState(false);

  return (
    <div className="flex min-h-40 w-full items-center justify-center">
      <div className="relative flex items-center">
        <SlidingPlayButton playing={playing} onPlayingChange={setPlaying} />
      </div>
    </div>
  );
}

Dependencies

More by erictsai83

View all
  • Adaptive Drawer

    Adaptive Drawer

  • Status Button

    Status Button

  • Floating Shortcut Button

    Floating Shortcut Button

  • Filter Tags

    Filter Tags

  • Feedback Popover

    Feedback Popover

  • Expandable Toolbar

    Expandable Toolbar

  • Expandable Toggle Button

    Expandable Toggle Button

  • Arc Menu

    Arc Menu

More in Buttons

View all
  • Button

    Button

    166
  • Texture Button

    Texture Button

    121
  • Button

    Button

    21
  • Figma File Button

    Figma File Button

    39
  • Native Button

    Native Button

    12
  • Button

    Button

    88
  • HeroUI Button Group

    HeroUI Button Group

    11
  • Great UI Button

    Great UI Button

    19