Displays content within a desired ratio.
Accepts any custom ratio.
Install the component from your command line.
npm install @tealess/aspect-ratio
Import the component.
import * as AspectRatio from "@tealess/aspect-ratio"; export default () => <AspectRatio.Root />;
Contains the content you want to constrain to a given ratio.
asChild
boolean
false
ratio
number
1