- Components
- Layout
Aspect Ratio
Locks a box to a ratio through the --ratio custom property.
Installation#
npx shadcn add @ortaui/aspect-ratioExamples#
16 / 9 and 1 / 1#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| ratio | number | - | Width divided by height. |