A stable ratio box for images, previews, embeds, and media shells.
AspectRatio defines how EnterUI handles a stable ratio box for images, previews, embeds, and media shells, including default structure, accessible states, and token-driven styling.
Children fill the ratio box without causing layout shift.

<AspectRatio ratio={16 / 9} className="docs-preview-media">
<img src="/enterui-logo-square.png" alt="EnterUI mark" />
</AspectRatio>import { AspectRatio } from "@froggdesign/enter-ui-react";AspectRatio does not add media semantics. Keep meaningful alt text on images and titles on embeds.
ratio defaults to 16 / 9.className.Uses CSS aspect-ratio and .eui-aspect-ratio.