AspectRatio
- from @ouro
A frame that keeps an image, video or map at a fixed shape while its width follows the layout, so the page does not jump when the media loads.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @ouro/aspect-ratioComponent source
No live preview has been built for this component yet.
Registry dependencies4
- @ouro/lib-class-name-check
- @ouro/lib-cn
- @ouro/lib-env
- @ouro/lib-use-dev-messages
Packages0
No npm packages are installed with it.