Skip to main content
Vuetify0 is now in alpha!
Vuetify0 Logo
Theme
Mode
Palettes
Accessibility
Vuetify One
Sign in to Vuetify One

Access premium tools across the Vuetify ecosystem — Bin, Play, Studio, and more.

Not a subscriber? See what's included

AspectRatio API

API reference for the AspectRatio component.

Explore these related pages for additional context and usage patterns.

PageCategory
Aspect RatioPrimitives
ImageSemantic
AtomPrimitives

AspectRatio

Props

ratio

string | number | undefined

The aspect ratio as `width / height`. Accepts a number (`16 / 9`) or a CSS `aspect-ratio` string (`'16 / 9'`, `'1.777'`).

Default: 1

Slots

default

AspectRatioSlotProps
Was this page helpful?

© 2016-1970 Vuetify, LLC
Ctrl+/