# Aspect Ratio
> Keeps its content at a fixed width-to-height ratio.
Source: https://native.shellui.dev/docs/components/layout/aspect-ratio
## Installation
```bash
shellui-native add aspect-ratio
```
**Platforms:** MAUI ยท Avalonia.
## Usage
### Basic
**MAUI**
```xml
```
**Avalonia**
```xml
```
[Live preview](https://native.shellui.dev/preview/index.html?c=aspect-ratio-basic)
## MAUI and Avalonia
- On Avalonia `AspectRatio` is a `Border`, so `CornerRadius` rounds whatever is inside.
- Set the width with `WidthRequest` on MAUI and `Width` on Avalonia.
## API
| Property | Type | Default | Description |
|---|---|---|---|
| `Ratio` | `double` | 16 : 9 (`1.7778`) | Width divided by height. 16:9 is 1.7778, 4:3 is 1.3333, a square is 1. |