Displays content within a desired ratio.
Accepts any custom ratio.
Install the component from your command line.
npm install @radix-ui/react-aspect-ratio
Import the component.
import * as AspectRatio from '@radix-ui/react-aspect-ratio';
export default () => <AspectRatio.Root />;
Contains the content you want to constrain to a given ratio.