Files
heygen-com__hyperframes/docs/catalog/components/aspect-ratio.mdx

39 lines
1.0 KiB
Plaintext

---
title: "Aspect Ratio"
description: "An aspect-ratio frame primitive for media, previews, and card thumbnails"
---
# Aspect Ratio
An aspect-ratio frame primitive for media, previews, and card thumbnails
`ui-primitive` `remocn-port` `aspect-ratio` `layout`
<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/aspect-ratio.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/aspect-ratio.png" autoPlay muted loop playsInline />
## Install
<CodeGroup>
```bash Terminal
npx hyperframes add aspect-ratio
```
</CodeGroup>
## Details
| Property | Value |
| --- | --- |
| Type | Component |
## Files
| File | Target | Type |
| --- | --- | --- |
| `aspect-ratio.html` | `compositions/components/aspect-ratio.html` | hyperframes:snippet |
## Usage
Open `compositions/components/aspect-ratio.html` and paste its contents into your composition. See the comment header in the file for detailed instructions.