AspectRatio

Maintains a fixed width-to-height ratio as its container resizes. Use it for media previews, thumbnails, and other responsive content.

React

Ready

Figma

Import

import { AspectRatio } from "@kela-systems/ui-components";

This page has no live example yet. Storybook shows AspectRatio in every state and theme.

Props

AspectRatio

NameDefaultDescription
ratioRequired
number

It also takes the attributes of the HTML element it renders.

Read this page as Markdown

Search ARK

Find a page, a primitive or a component.