Shadcn/ui Aspect Ratio - Figma Component
Displays content within a desired ratio. This Figma component is part of our comprehensive design system that brings the popular shadcn/ui library into your design workflow.
Every Aspect Ratio variant includes all the necessary states, properties, and styling options you need to create consistent, production-ready designs. The component seamlessly integrates with your existing Figma files and maintains full compatibility with the shadcn/ui React implementation.
Features
- Maintains consistent aspect ratios across different screen sizes
- Built with Radix UI Aspect Ratio primitive
- Perfect for images, videos, and embedded content
- Common ratios like 16:9, 4:3, 1:1, and custom ratios
- Prevents layout shifts and maintains visual consistency
- Responsive and adapts to container width automatically
Browse all 56 components
- Accordion5 variants
- Alert Dialog5 variants
- Alert4 variants
- Aspect Ratio2 variants
- Avatar8 variants
- Badge5 variants
- Breadcrumb5 variants
- Button Group10 variants
- Button13 variants
- Calendar9 variants
- Card4 variants
- Carousel5 variants
- Chart6 variants
- Checkbox6 variants
- Collapsible3 variants
- Combobox10 variants
- Command4 variants
- Context Menu8 variants
- Data Table1 variant
- Date Picker6 variants
- Dialog4 variants
- Direction1 variant
- Drawer3 variants
- Dropdown Menu11 variants
- Empty5 variants
- Field11 variants
- Hover Card2 variants
- Input Group12 variants
- Input OTP8 variants
- Input13 variants
- Item9 variants
- Kbd4 variants
- Label1 variant
- Menubar4 variants
- Navigation Menu1 variant
- Pagination2 variants
- Popover3 variants
- Progress2 variants
- Radio Group5 variants
- Resizable2 variants
- Scroll Area1 variant
- Select5 variants
- Separator3 variants
- Sheet2 variants
- Sidebar1 variant
- Skeleton5 variants
- Slider5 variants
- Sonner3 variants
- Spinner6 variants
- Switch5 variants
- Table2 variants
- Tabs4 variants
- Textarea4 variants
- Toggle Group6 variants
- Toggle4 variants
- Tooltip3 variants
Designing with aspect ratios in Figma
The shadcn/ui figma Aspect Ratio component helps you design images and videos with perfect proportions. Use 16:9 for videos, 1:1 for avatars, or custom ratios for your needs. This shadcn figma component ensures your designs stay consistent across all screen sizes.
Aspect Ratio for media embeds
Design video embeds and media cards in Figma with proper aspect ratios. The shadcn/ui figma component includes common ratios like 16:9 and 4:3, so you can prototype YouTube embeds and image galleries that look great on any device.
Choosing aspect ratios for your design
Use the shadcn figma Aspect Ratio component to design with standard ratios—16:9 for videos, 4:3 for photos, and 1:1 for social media. Design once in Figma, and developers can implement it exactly using shadcn/ui React components.
Shadcn Pro Aspect Ratio variants
This shadcn/ui figma component matches the code implementation perfectly. Design your image grids, video players, and media cards in Figma knowing they'll look identical when built. No surprises between design and development.
Your questions, answered
Common questions about the Aspect Ratio component in the shadcn/ui Figma kit.
The Aspect Ratio component supports any custom ratio you need. Common ratios like 16:9 (widescreen), 4:3 (standard), 1:1 (square), and 21:9 (ultrawide) are easily configured, but you can use any ratio value that fits your design.
Wrap your image element with the Aspect Ratio component and set your desired ratio. The component will maintain the ratio while the image fills the container. Works great with Next.js Image component and other image solutions.
Yes! Aspect Ratio is perfect for embedding videos from YouTube, Vimeo, or other platforms. It ensures the video maintains the correct proportions across all screen sizes without letterboxing or stretching.
Absolutely. The Aspect Ratio component reserves the correct space before content loads, preventing cumulative layout shift (CLS) and improving your Core Web Vitals scores.
Yes, the component is fully responsive. It adapts to its container width while maintaining the specified aspect ratio, making it perfect for responsive grid layouts and flexible designs.
Yes, this Figma component matches the shadcn/ui Aspect Ratio implementation exactly, ensuring consistent behavior between your designs and production code.