# AspectRatio (@limerdev/zest) Keeps its content at a width-to-height `ratio` (`16 / 9`, `1`, `4 / 3`) as its width changes, so images and embeds don't shift the page while they load. - Category: Layout - Import: `import { AspectRatio } from '@limerdev/zest'` - Bits UI: `AspectRatio`, https://bits-ui.com/docs/components/aspect-ratio - Exports: `AspectRatio` - Use for: Images, video and map embeds in a fluid layout. - Don't: Plain media with known width and height attributes: the browser keeps their ratio already. ```svelte The Limer office ``` Props of `AspectRatio`: - `ratio` (`number`, default `1`): The aspect ratio of the image. Example: Basic The box keeps 16:9 as the page narrows. ```svelte
16 : 9
```