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-ratio

Props

PropTypeDefaultDescription
rationumber1Width / height ratio (e.g. 16 / 9 = 1.777).