> ## Documentation Index
> Fetch the complete documentation index at: https://docs.beyondwords.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Minimal Player

> A transparent, ultra-minimal player that expands from play + call to action into rate, seek-back, and time controls.

> [tab] Preview

> [tab] Code
>
> ```jsx MinimalPlayer.jsx theme={null}
> "use client";
>
> import { CallToAction } from "@/registry/react/blocks/minimal/CallToAction";
> import { CurrentTime } from "@/registry/react/blocks/minimal/CurrentTime";
> import { PlaybackRateMenu } from "@/registry/react/blocks/minimal/PlaybackRateMenu";
> import { PlayerProvider, usePlayerSelector } from "@/registry/react/blocks/minimal/PlayerProvider";
> import { PlayPauseButton } from "@/registry/react/blocks/minimal/PlayPauseButton";
> import { PrevSecondsButton } from "@/registry/react/blocks/minimal/PrevSecondsButton";
>
> function Bar() {
>   const stopped = usePlayerSelector((p) => p.playbackState) === "stopped";
>   return (
>     <div className="flex w-[536px] items-center gap-3 text-neutral-900 dark:text-neutral-100">
>       <PlayPauseButton />
>       {stopped ? (
>         <CallToAction />
>       ) : (
>         <>
>           <PrevSecondsButton seconds={10} />
>           <PlaybackRateMenu />
>           <CurrentTime />
>         </>
>       )}
>     </div>
>   );
> }
>
> export function MinimalPlayer({ projectId, sourceId, ...args }) {
>   return (
>     <PlayerProvider args={{ projectId, sourceId, showUserInterface: false, ...args }}>
>       <Bar />
>     </PlayerProvider>
>   );
> }
> ```

## Installation

```bash npm theme={null}
npx @beyondwords/cli components add minimal-player
```

```bash pnpm theme={null}
pnpm dlx @beyondwords/cli components add minimal-player
```

```bash yarn theme={null}
yarn dlx @beyondwords/cli components add minimal-player
```

```bash bun theme={null}
bunx --bun @beyondwords/cli components add minimal-player
```

## Usage

```tsx theme={null}
import { MinimalPlayer } from '@/registry/react/blocks/minimal/MinimalPlayer';

export function Player() {
  return <MinimalPlayer projectId={9504} contentId="ba00ef51-03ac-4a85-8b98-e45c957e8ef8" />;
}
```

`MinimalPlayer` is a transparent single-line control strip — no background pill.
While stopped it shows only play and a "Listen to article" call to action. Once
playback starts it swaps to the speed dropdown (0.9x–2x), skip-back 10s, and
current time. It wraps its own [`PlayerProvider`](https://docs.beyondwords.io/components/react/player-provider),
so you pass only `projectId` and `contentId`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.