Elements Aspect Ratio
Back to Elements

Aspect Ratio

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

AspectRatio.Root

Container maintaining specific width-to-height ratio.

Prop Type Default Description
ref bind: HTMLElement | null null
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.