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
| Name | Default | Description |
|---|---|---|
ratioRequirednumber |
It also takes the attributes of the HTML element it renders.