Aspect ratio
Keeps a box at a set shape, like 16 by 9, at any width.
Keeps a box at a set shape, like 16 by 9, at any width.
npx shadcn@latest add aspect-ratio
npm install radix-ui
First time with shadcn/ui? Set it up once.
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.
Changed for this site: The sample photo is a plain block with its ratio written on it.