Vinyl player
A vinyl-inspired audio player with tactile playback controls.
Installation
npx shadcn@latest add qubydev/bunui/vinyl-playerHow to use
demo.tsx
import { VinylPlayer } from "@/components/ui/vinyl-player"export function Demo() {return <VinylPlayer />}
Props
Options you can pass to customize this component.
Prop
Type
Description
playingbooleanPlay state for controlled usage. Leave it out to let the component manage itself.
defaultPlayingbooleanInitial play state when the component is uncontrolled.
onPlayingChange(playing: boolean) => voidCalled whenever the play button changes the play state.
disabledbooleanDisables the play control and dims the player.
spinDurationnumberMilliseconds for one full record rotation.
classNamestringExtra classes merged onto the player root.
License & Usage
- •Free to use and modify in personal and commercial projects.
- •Attribution to Bun UI is appreciated when using a component.
- •Please do not resell the components as your own kit.