SpotIllustration
Small line art for empty states and onboarding; takes the container's hue (data-hue / data-signature).
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
Small line art for empty states and onboarding; takes the container's hue (data-hue / data-signature).
Accessibility
Communicates the situation in words and offers a clear next step; not reliant on illustration alone.
Install and import
npx shadcn@latest add @prism/spot-illustration
import { SpotIllustration } from '@/components/prism/SpotIllustration';
In a no-build prototype, read it from the bundle instead: const { SpotIllustration } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
name | SpotIllustrationName | — | Which drawing. Default "inbox". |
size | "sm" | "md" | "lg" | — | sm 96px · md 128px (default) · lg 176px wide (4:3). |
title | string | — | Makes it an image with this accessible name. Without it the drawing is decorative (aria-hidden). |
className | string | — |