Aspect Ratio
Holds a box at a fixed width-to-height ratio whatever its width — a cover image, a video frame, a chart that must not stretch.
tsx
import { AspectRatio } from "@pestoui/core"Ratios
ratio is width over height. The box fills its parent's width, so the parent decides how large it gets.
Props
Pesto UI · 117 documented components