Aspect Ratio
- from @miseui
Holds the space for media before it arrives, so the page does not jump, with a mat, an overlaid caption or an empty slot.
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 @miseui/aspect-ratioLive preview
No live preview has been built for this component yet.
Registry dependencies2
- utils
- motion
