Aspect ratio
Constrain content to a fixed ratio.
16 / 9
Image
Ratios
1 / 1
4 / 3
16 / 9
3 / 4
API reference
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
ratio | string | '1 / 1' | Aspect ratio for the content, as a CSS `aspect-ratio` value (e.g. `16 / 9`). |
Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.