ortaui
  1. Components
  2. Layout

Aspect Ratio

Locks a box to a ratio through the --ratio custom property.

Installation#

npx shadcn add @ortaui/aspect-ratio

Examples#

16 / 9 and 1 / 1#

API reference#

PropTypeDefaultDescription
rationumber-Width divided by height.