1. UI
  2. Toggle Button

UI

Toggle Button API

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>

      

Properties