Component docs
Loading
import { AspectRatio } from "@pixxl-tools/components";
// In Server Components:
import { AspectRatio } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
ratio | string | — | — |
ratiostring
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
<AspectRatio ratio="4 / 3">...</AspectRatio>