Aspect ratio example: a plain wrapper that holds its children to a width-to-height ratio you set, for images, video and cards. No client JavaScript is needed.
npx shadcn@latest add @01orbital/aspect-ratio
Loading the source for aspect-ratio…
Files
—
aspect-ratio
Configuration
Name
aspect-ratio
Type
UI
Description
Aspect ratio example: a plain wrapper that holds its children to a width-to-height ratio you set, for images, video and cards. No client JavaScript is needed.
Files
—
aspect-ratio
Configuration
Name
aspect-ratio
Type
UI
Description
Aspect ratio example: a plain wrapper that holds its children to a width-to-height ratio you set, for images, video and cards. No client JavaScript is needed.