Aspect Ratio
Displays content within a desired ratio.
Features
- Accepts any custom ratio.
Installation
Install the component from your command line.
sh
$ npm add reka-uiAnatomy
Import the component.
vue
<script setup>
import { AspectRatio } from 'reka-ui'
</script>
<template>
<AspectRatio />
</template>API Reference
Root
Contains the content you want to constrain to a given ratio.
Accessibility
Aspect Ratio is a layout-only wrapper. It adds no role or ARIA attributes, is not focusable and has no keyboard interaction. The accessibility of the content placed inside it, such as the alt text of an image, remains your responsibility.
