Aspect Ratio
rivelle/aspect-ratioFreeComponent
A server-independent primitive for predictable media proportions.
Live preview
live · rendered by the registry
Rendered by rivelle on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://rivelle.dev/r/aspect-ratio.jsonSource
1"use client"23import * as React from "react"4import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio"56function AspectRatio(props: React.ComponentProps<typeof AspectRatioPrimitive.Root>) {7 return <AspectRatioPrimitive.Root data-slot="aspect-ratio" {...props} />8}910export { AspectRatio }
What it pulls in
npm packages
Files it writes
More from rivelle
All 83 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | rivelle | Components | Free | 2 deps | |
| Alertalert | rivelle | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | rivelle | Components | Free | 1 dep | |
| Avataravatar | rivelle | Components | Free | 1 dep | |
| Badgebadge | rivelle | Components | Free | 2 deps | |
| Breadcrumbbreadcrumb | rivelle | Components | Free | 2 deps | |
| Buttonbutton | rivelle | Components | Free | 2 deps | |
| Button Groupbutton-group | rivelle | Components | Free | no deps |
