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
| Feature | Status |
|---|---|
| Right-to-left | Not applicable |
| Dark mode | Not applicable |
| Density | Not applicable |
| Server rendering | Renders on the server |
| Reduced motion | Not applicable |
Accessibility
No ARIA widget pattern. Not yet audited.
Tests
Covered by unit, accessibility (axe) and visual tests.