# AspectRatio

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

Package: `@kela-systems/ui-components` 4.1.0

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

Links (Kela sign-in needed): [Storybook](https://main--6af1efd9453270bb59a6c00c.chromatic.com/?path=/docs/components-aspectratio--docs), [Source](https://github.com/Kela-Systems/kela/tree/main/packages/next/ui-components/src/aspect-ratio), [Figma](https://www.figma.com/design/anhlwrbFM6mUiL0klxeK1I/ARK---Design-System?node-id=21-535)

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### AspectRatio

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `ratio` (required) | `number` |  |  |

Also takes the attributes of the HTML element it renders.
