Layout
Aspect Ratio
Reserves a fixed proportion for media with native CSS.
idle
Usage
Examples
Media proportions
Recommendations
| Guidance | Practice |
|---|---|
| Do | Reserve the intended media proportion before loading. Choose image fitting that preserves meaningful content. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Aspect Ratio controls geometry. Image descriptions, loading, and media playback belong to the child content. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | 16 / 9 | Finite positive width-to-height ratio. |
| | Required | Content fills the reserved frame. The caller chooses its media fit. |
