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

js
        import '@vidstack/player/define/vds-toggle-button.js';

      
cdn
        <script
  type="module"
  src="https://cdn.jsdelivr.net/npm/@vidstack/player@next/cdn/define/vds-toggle-button.js"
></script>

      

Usage

The <vds-toggle> component is used to build other toggle buttons such as <vds-play-button>, <vds-mute-button>, etc.