Squircle Card
- from @mizzle
- by mizzle <https://mizzle.saddy.me>
The Card with continuous corners. A plain squircle at the same radius looks sharper, so the radius grows by the depth a circle cuts divided by the depth the curve cuts, ×1.84 for a squircle; the corners line up with the round ones they replace and the nested gap stays even. Uses CSS corner-shape inside @supports, so browsers without it keep the regular round Card.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @mizzle/squircle-cardComponent source
No live preview has been built for this component yet.
Registry dependencies1
- @mizzle/card
Packages0
No npm packages are installed with it.
