229
Empty-cart art: a shopping bag slumps and sighs, perks up when a price tag dangles in, and puffs up proudly with a bounce when you add something.
akacart·shopping bag·empty state
Run this in any project set up for the shadcn CLI. It copies the Empty Bag source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/empty-bag.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { EmptyBag } from "@/components/empty-bag";
export default function Page() {
return <EmptyBag />;
}A free React illustration in the Empty States collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Empty Bag source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| count | number | — |
| onAdd | () => void | — |
| title | string | "Your bag is empty" |
| description | string | "Nothing in here yet. Find something you love and it'll wait for you." |
| filledTitle | string | — |
| filledDescription | string | "Held for 48 hours. Shipping is free over $50 and returns are on us." |
| actionLabel | string | "Add to bag" |
| price | string | "$48" |
| hue | EmptyBagHue | "violet" |
| className | string | — |