Components/Aspect Ratio
Aspect Ratio
Constrains content to a specific width-to-height ratio — useful for media, embeds, and consistent placeholders.
Installation
npx ajaxui add aspect-ratioProps
| Prop | Type | Default | Description |
|---|---|---|---|
| ratio | number | 1 | Width / height ratio (e.g. 16 / 9 = 1.777). |