UNPKG

@aidenlx/player

Version:

Headless web components that make integrating media on the a web a breeze.

29 lines (22 loc) • 1.02 kB
// [@vidstack/eliza] THIS FILE IS AUTO GENERATED - SEE `eliza.config.ts` import "../../define/vds-aspect-ratio.js"; import * as React from "react"; import { createComponent } from "../lib/index.js"; import { AspectRatioElement } from "../../ui/aspect-ratio/index.js"; const EVENTS = {} as const; /** This element creates a container that will hold the dimensions of the desired aspect ratio. This container is useful for reserving space for media as it loads over the network. šŸ’” If your browser matrix supports the [`aspect-ratio`](https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio) CSS property then you can skip using this component, and set the desired aspect ratio directly on the provider. šŸ’” By default it respects the browser's default aspect-ratio for media. This is not specific to the loaded media but instead a general setting of `2/1`. */ const AspectRatio = createComponent( React, "vds-aspect-ratio", AspectRatioElement, EVENTS, "AspectRatio" ); export default AspectRatio;