Qeetrix

Aspect Ratio

Constrains its content to a fixed width-to-height ratio using the native CSS `aspect-ratio` property.

Usage

Import

import { AspectRatio } from "@qeetrix/ui";

It can also be imported on its own from @qeetrix/ui/components/aspect-ratio.

Support

FeatureStatus
Right-to-leftNot applicable
Dark modeNot applicable
DensityNot applicable
Server renderingRenders on the server
Reduced motionNot applicable

Accessibility

No ARIA widget pattern. Not yet audited.

Tests

Covered by unit, accessibility (axe) and visual tests.