About
A circular media toggle whose glyph morphs between a play triangle and pause bars, with a ghost or frosted over-video surface.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Play Button to your project and fits it to your theme.
Code
How 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 { PlayButton } from "@/components/ui/ericts-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">
<PlayButton playing={playing} onPlayingChange={setPlaying} />
</div>
</div>
);
}















