Aspect ratio

Constrain content to a fixed ratio.

16 / 9

Image

Landscape

Ratios

1 / 1
4 / 3
16 / 9
3 / 4

API reference

Inputs

PropTypeDefaultDescription
ratiostring'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.