Aspect RatioDisplays content within a desired ratio.Docs API Reference Dependencies@radix-ui/react-aspect-ratio: v1.1.0 PreviewCode Installation CLIManualnpmpnpmyarnbunnpx @kosori/cli add components aspect-ratio Usage import Image from 'next/image'; import { AspectRatio } from '~/components/ui/aspect-ratio'; <div className='w-[450px]'> <AspectRatio ratio={16 / 9}> <Image src='...' alt='Image' className='rounded-md object-cover' /> </AspectRatio> </div> Examples Video (16:9) PreviewCode Square (1:1) PreviewCode Portrait (9:16) PreviewCodeEdit on GitHubPreviousAlert DialogNextAvatar