Skip to Content

Aspect Ratio

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.

pnpm dlx shadcn add @01orbital/aspect-ratio

Dependencies

npm: cn. The CLI installs them for you.

No other registry pieces.