Aspect Ratio

Disclosure & Layout
Local guide ↗ import { AspectRatio } from "bits-ui"

Widescreen artwork

A dependency-free 16:9 visual built from layered CSS gradients

16 : 9

Signal study 04

Depth without an image request

Ratio comparison

The same width constraint produces 4:3 and square media frames

4 : 3 editorial

Landscape card

1 : 1 cover

Square artwork

ratio is a number expressed as width divided by height, such as 16 / 9 or 4 / 3; it defaults to 1. The primitive owns only the sizing logic, so media still needs its own full-size and object-fit styling.