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>
);
}















