1. UI
  2. Aspect Ratio

UI

Aspect Ratio API

This component is used to create a container with a fixed aspect ratio around a media provider.

Import

js
        import '@vidstack/player/define/vds-aspect-ratio.js';

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

      

Properties