Skip to Content
DocsLayoutAspect Ratio

Aspect Ratio

Aspect ratio constrains its content to a fixed width-to-height ratio.

Sample

Component props

NameTypeDescription
rationumberWidth-to-height ratio, e.g. 16 / 9 (default: 1)