Skip to content
SevenUI
Sign inGet Pro

Aspect Ratio components

13 free, copy-and-go React Aspect Ratio examples built on the SevenUI Aspect Ratio primitive. Install any of them with the shadcn CLI.

On this page

Ratio Presets

The four common ratios side by side, each labeled with its typical use.

… add @sevenui/component/aspect-ratio-01… add @sevenui/ui-sdk/component/aspect-ratio-01
  • 1:1
    Avatars, product tiles
  • 4:3
    Photos, slides
  • 16:9
    Video, hero banners
  • 21:9
    Cinematic headers

Media Card Orientations

A 16:9 cover on a vertical card and square thumbnails on horizontal cards.

… add @sevenui/component/aspect-ratio-02… add @sevenui/ui-sdk/component/aspect-ratio-02
Side-by-side light and dark versions of a settings screen
Design systems
Designing dark mode without inverting everything
Why elevation, not brightness, should drive your dark palette.
  • Choosing a type scale for dense dashboards6 min read
  • Motion that respects reduced-motion settings4 min read

Media Load States

Loading, error with retry, and loaded states inside a fixed 3:2 frame.

… add @sevenui/component/aspect-ratio-03… add @sevenui/ui-sdk/component/aspect-ratio-03
Preview state

Loading cover image.

Custom Ratio Builder

Width and height number fields drive a live, controlled ratio preview.

… add @sevenui/component/aspect-ratio-04… add @sevenui/ui-sdk/component/aspect-ratio-04

1.78 : 1Widescreen

16 × 9

Video Thumbnail Overlays

A 16:9 thumbnail with badge, duration, play control, and watch progress layered on top.

… add @sevenui/component/aspect-ratio-05… add @sevenui/ui-sdk/component/aspect-ratio-05
Speaker on stage in front of a slide about incremental renderingReplay42:17
Streaming server componentsFrontend Summit 2026 · 38% watched, resumes at 16:04

Meeting Video Grid

A video call grid of 16:9 participant tiles with camera-off avatars, a speaking ring, muted badges and a pin toggle that expands a tile to the full row.

… add @sevenui/component/aspect-ratio-06… add @sevenui/ui-sdk/component/aspect-ratio-06

Q3 roadmap review

4 in call · 24:08

  • Maya Chen, speaking
  • JW
    Jonas Weber, muted, camera off
  • Amara Osei, muted
  • You

Before and After Comparison

Two stacked images in one frame, revealed with a slider.

… add @sevenui/component/aspect-ratio-07… add @sevenui/ui-sdk/component/aspect-ratio-07
Living room after color grading, warm and balancedLiving room before color grading, flat and desaturatedBeforeAfter
Compare edit

Product Card

A storefront product card with a 4:5 image, season badge, wishlist toggle, color swatches and an add-to-bag button.

… add @sevenui/component/aspect-ratio-08… add @sevenui/ui-sdk/component/aspect-ratio-08
Merino crew sweater in oat, front view
New season

Merino Crew Sweater

Oat

$128

Color

Profile Cover Upload

A settings panel for replacing a 3:1 profile cover image with an overlapping avatar and size guidance.

… add @sevenui/component/aspect-ratio-09… add @sevenui/ui-sdk/component/aspect-ratio-09

Profile cover

Shown at the top of your public profile and in team directories.

Current profile cover
PR

team-offsite-lisbon.jpg

3:1 ratio · 1500 × 500 px recommended · JPG or PNG up to 5 MB

Support Chat Photos

A support conversation with a mixed-ratio photo attachment grid that opens a 4:3 lightbox dialog.

… add @sevenui/component/aspect-ratio-10… add @sevenui/ui-sdk/component/aspect-ratio-10

The lamp arrived like this. Box was already crushed at delivery.

You · 9:41 AM · 5 photos

Thanks, Daniel. The photos are clear enough to approve a replacement without a return. A new lamp ships today.

Nora · Support · 9:43 AM

File Manager Grid

A shared folder of 4:3 file previews with checkbox selection and a bulk action bar.

… add @sevenui/component/aspect-ratio-11… add @sevenui/ui-sdk/component/aspect-ratio-11

2 selected

Social Post Crop

A post composer that switches the feed preview between square, portrait, and landscape crops.

… add @sevenui/component/aspect-ratio-12… add @sevenui/ui-sdk/component/aspect-ratio-12

Crop for feed

Exports at 1080 × 1350 px
FH

fieldhouse.coffee

Sponsored

Pour-over coffee on a wooden counter
fieldhouse.coffee New Ethiopian single origin lands Friday. Bright, floral, a little jammy.

Store Pickup Map

A pickup picker with store pins positioned on a 16:9 map that stay anchored at any width.

… add @sevenui/component/aspect-ratio-13… add @sevenui/ui-sdk/component/aspect-ratio-13

Pick up in store

Trail Runner 4 · Size 10 · Ready in 2 hours

Map of San Francisco store locations

Pickup at Mission District

Directions

Components are the parts. Blocks are the page.

Pro blocks are whole sections and pages — heroes, pricing, dashboards, auth — composed from the same primitives and themed by the same tokens you already use. Install one and it is yours.

One purchase, yours forever. $99 at launch instead of $249.