> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Media Player

A music player screen with playback controls, a position bar, shuffle and repeat toggles and a collapsible "Up Next" queue. It's UI only, so no audio plays.

Built with the [UI components](/dolan/index.md): [Avatar](/dolan/avatar.md), [Progress](/dolan/progress.md), [Toggle](/dolan/toggle.md), [Collapsible](/dolan/collapsible.md), [Separator](/dolan/separator.md) and [Button](/dolan/button.md).


## What it shows

- **Toggle buttons** — Toggle with `[(pressed)]` keeps shuffle and repeat on or off.
- **Derived time** — `computed()` turns the position percentage into the elapsed time under the Progress bar.
- **Icon buttons** — Button with `variant="ghost"` and `size="icon"` holds the previous and next symbols.
- **A collapsible queue** — a Collapsible hides Up Next, and tapping a track there jumps to it.
- **Avatar as artwork** — an Avatar with a `fallback` character stands in for album art.

## Related

- [User Profile](/examples/user-profile.md)
- [Gestures](/examples/gestures.md)
