1. UI
  2. Toggle Button

UI

Toggle Button

This component is used to create buttons that have an on and off state (i.e., toggle).

Import

tsx
        import { ToggleButton } from '@vidstack/player-react';

      

Usage

The <Toggle> component is used to build other toggle buttons such as <PlayButton>, <MuteButton>, etc.