Aspect ratio
A box with a fixed width/height ratio; its image, video or iframe fills it.
16 / 9
API
For AI agents: this API as Markdown, or every component in llms-full.txt.
<ray-aspect-ratio> · RayAspectRatio
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
ratio | ratio reflects | string | 16/9 | Width/height: "16/9", "4:3", "1" or a number. |
fit | fit reflects | cover | contain | cover | How the media fills the box (object-fit). |
radius | radius reflects | string | Corner radius: xs…xl, full or a CSS length. |
| Slot | Description |
|---|---|
| (default) | The media (img, video, iframe or any element); it fills the box. |