affectUI › Illustrations › Card illustrations
Empty Calendar
Stack of calendar cards marked empty, fanning out on hover.
Free and open source (MIT). Install: npx shadcn@latest add https://www.affectui.com/r/empty-calendar.json · Import from @/components/ui/empty-calendar
When to use
- A problem or pain-point card about an empty pipeline or no booked meetings
- Bento grids and feature cards that need a small, friendly illustration above the text
When not to use
- Showing a real calendar – the cards are decorative and contain placeholder lines only
Usage
import { EmptyCalendar } from "@/components/ui/empty-calendar";
export function FeatureCard() {
return (
<article style={{ maxWidth: 360 }}>
<EmptyCalendar />
<h3>Card title</h3>
<p>Short description of the problem or step.</p>
</article>
);
}Props
| Name | Type | Default | Description |
|---|---|---|---|
label | string | "Stacked calendar cards marked empty…" | Accessible description of the illustration |
className | string | Extra class on the root, e.g. for width or margins |
Accessibility
- Exposed as one image with a descriptive label; the cards and texts inside are hidden from screen readers
- Hover effects are purely decorative, nothing needs to be reached with the keyboard
Responsive
- Transparent background, so it sits on any light or dark surface
- Keeps a 3 : 2 aspect ratio and scales to the width of its container – set a width or max-width via className
- Drawn on a 320 × 240 viewBox, so text and cards scale crisply at any size
- Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"
Requirements
- React 19