Shadcn compatible aspect ratio wrapper that locks media to a ratio such as 16:9 or 1:1 using CSS aspect-ratio, with overflow clipped for images and video.
npx shadcn@latest add @minidev/aspect-ratio
Loading the source for aspect-ratio…
Registry Items
aspect-ratio
Configuration
Name
aspect-ratio
Type
UI
Description
Shadcn compatible aspect ratio wrapper that locks media to a ratio such as 16:9 or 1:1 using CSS aspect-ratio, with overflow clipped for images and video.
Files · 1
Registry Items
aspect-ratio
Configuration
Name
aspect-ratio
Type
UI
Description
Shadcn compatible aspect ratio wrapper that locks media to a ratio such as 16:9 or 1:1 using CSS aspect-ratio, with overflow clipped for images and video.