SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

On this page

Equalizer

The "this is playing" mark a music app puts on a track.

Now playingNow playingNow playingPausedPaused
View code
tsx
<Equalizer label="Now playing" />

<div data-audio-paused>
	<Equalizer label="Paused" />
</div>

Installation

An ordinary dependency: install it, import the theme once, and import the component where it is used.

Terminal
npm add @sdxc/ui remix
typescript
import "@sdxc/ui/theme.css";

Usage

typescript
import { Equalizer } from "@sdxc/ui/audio";

Renders the bars in the current text color at 1em square. They hold still under reduced motion and inside any [data-audio-paused] ancestor.

Props

Read from the component's own types, so every prop, every default and every allowed value is listed.

PropTypeRequiredDescription
labelstringNoWhat a screen reader hears in place of the bars, such as "Now playing".

Also accepts everything in Omit<TagProps<"span">, "children">.

@sdxc/ui

Can’t find it? Contact us