import { AspectRatio } from '@precursor/aspect-ratio';Example

import { AspectRatio } from '@precursor/aspect-ratio';
export default function Example() {
return (
<AspectRatio ratio="wide">
<img src="/precursor/docs/preview.jpg" alt="Precursor portrait" />
</AspectRatio>
);
}
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
childrenRequired | ReactNode | — | — |
ratio | "square" | "standard" | "wide" | "portrait" | 'square' | — |