Skip to content
FrameworkStyle

AudioSkin

The audio preset's default skin with the modern, frosted look

The default skin of the audio preset: the control layout for on-demand audio with the modern, frosted look. MinimalAudioSkin is the same preset’s other variant. See Skins for how packaged skins work and Presets for what the audio preset ships.

Import

import { AudioSkin } from '@videojs/react/audio';
import '@videojs/react/audio/skin.css';

Usage

The skin goes between the player and the media element. It renders its controls around the media.

<AudioPlayer>
  <AudioSkin>
    <Audio src="audio.mp3" />
  </AudioSkin>
</AudioPlayer>

Styling

Packaged skins style themselves and expose a small set of public CSS custom properties. Everything else inside the skin is private and may change between releases. Customize skins documents the properties. When you need deeper changes, eject the skin.

Eject the skin

The @videojs/audio skin installs under components/videojs/skins/audio. The player and media remain package imports. Follow Customize skins to set up the CLI, install the skin, and use the copied files.