Aspect Ratio
Keeps content at a fixed width to height ratio.
components/ui/aspect-ratio.tsx
Preview
Code
16 : 9
Installation
npx betterone-ds add aspect-ratioProps
| Prop | Type | Default |
|---|---|---|
| ratio | number | required |
Accessibility
- Use for images and video so the layout does not jump while loading.

