AspectRatio
Maintains the aspect ratio of its child.
import { AspectRatio } from '@ybouhjira/hyperkit';#Playground
Edit the code — the preview recompiles and re-renders as you type.
Loading preview…
#Props
| Prop | Type | Default | Description |
|---|---|---|---|
ratio | number | 1 | Width-to-height ratio (e.g., 16/9, 4/3, 1). |