Skip to content

React alerts, toasts and empty states

Free React feedback components: toasts, alerts, banners, callouts, progress, skeletons, spinners, and empty, error and offline states for real products.

30 itemsFree, MITshadcn CLI compatibleTailwind CSS v4Light and dark

Feedback components cover three moments. Something happened: Toast, InlineAlert, Callout and Banner. Something is loading: Skeleton, Spinner, Progress and LoadingOverlay. There is nothing to show: EmptyState, EmptySearch, ErrorState, NotFoundState, OfflineState and PermissionDenied. StatusBadge, StatusDot and Meter show the state of a record.

Toast comes with its own toast() function, with success, error, loading and promise variants, so you do not need a separate toast library. Failures are announced where it matters: ErrorState and RetryBlock are live regions, so screen readers hear them when they appear.

Which one should I use?

You needUseWhy
Confirm an action brieflyToasttoast.success(), toast.promise()
A message beside a form or sectionInline AlertTone icon, optional title
A note inside docs or settingsCalloutTinted, inside the content
A page-wide notice with an actionBannerTrial ending, unpaid invoice
Content loading, shape knownSkeletonSize it to the real content
A short wait inside a buttonSpinnerAnnounced once with its label
A task with a known endProgressOr value={null} for indeterminate
Refreshing data already on screenLoading OverlayStale content stays visible
Nothing here yetEmpty StateIcon, title, hint, one action
A search that found nothingEmpty SearchEchoes the query back
A request that failedError Staterole="alert", optional retry
A 404 pageNot Found StateCode, heading, recovery links
A 500 error with a request idServer Error StateCopyable id for support
The app is offlineOffline BannerPolite status region
The status of a recordStatus BadgeText carries the meaning

30 items

npx shadcn@latest add @minidev/badge @minidev/banner @minidev/callout @minidev/empty-search @minidev/empty-state @minidev/error-state @minidev/health-indicator @minidev/incident-banner @minidev/inline-alert @minidev/loading-overlay @minidev/meter @minidev/not-found-state @minidev/notification-item @minidev/offline-banner @minidev/offline-state @minidev/permission-denied @minidev/presence-dot @minidev/progress-circle @minidev/progress @minidev/reaction-bar @minidev/retry-block @minidev/server-error-state @minidev/skeleton @minidev/spinner @minidev/status-badge @minidev/status-dot @minidev/toast @minidev/vote-control @minidev/empty-workspace @minidev/notification-center

Components 28

  • Shadcn style badge in seven variants: default, accent, secondary, destructive, outline, ghost and link. Renders as a span or any element, with icon support.

    npx shadcn@latest add @minidev/badge
  • Inline notice banner in accent, warning or danger tones, with a status role, a slot for an action button and an optional dismiss icon on the right.

    npx shadcn@latest add @minidev/banner
  • Tailwind callout box in info, success, warning or danger tones with an optional bold title. Uses the note role, which suits docs, forms and setup steps.

    npx shadcn@latest add @minidev/callout
  • No results state for search that echoes the query in the title and suggests trying another query or clearing filters. Built on the empty state component.

    npx shadcn@latest add @minidev/empty-search
  • Dashed empty state panel with an icon slot, title, description and an optional call to action button. Use it for first run screens and empty lists in React.

    npx shadcn@latest add @minidev/empty-state
  • React error state panel with an alert role, a title, explanation and an optional Try again button that calls your retry handler. For failed fetches.

    npx shadcn@latest add @minidev/error-state
  • A status dot and label for service health with operational, degraded and down states mapped to success, warning and danger colors. Made for status pages.

    npx shadcn@latest add @minidev/health-indicator
  • A full width Tailwind status bar announcing an outage with minor, major and critical severity colors, the incident title and a link to your status page.

    npx shadcn@latest add @minidev/incident-banner
  • An inline React message box in neutral, success, warning and danger tones with a matching icon, an optional title and body text. Announced with role alert.

    npx shadcn@latest add @minidev/inline-alert
  • A translucent overlay that covers its parent with a centered spinner and label while data loads, inheriting the parent radius and announced with role status.

    npx shadcn@latest add @minidev/loading-overlay
  • A horizontal gauge bar using role meter with aria value attributes, an optional label and a fill clamped to 100 percent. For storage, quota and usage limits.

    npx shadcn@latest add @minidev/meter
  • A 404 state with the error code, a Page not found heading, a short explanation and Go home and Open gallery buttons, centered in a card. Built in React.

    npx shadcn@latest add @minidev/not-found-state
  • A single notification row with an unread dot and tint, a truncated title, relative time and a short body line. Stack it in React inboxes and activity feeds.

    npx shadcn@latest add @minidev/notification-item
  • A full width amber banner shown when the app loses its connection, with a wifi off icon, a note that changes will sync later and an optional Retry button.

    npx shadcn@latest add @minidev/offline-banner
  • An offline status card with a warning dot, a You are offline heading, a note on what still works and a Retry connection button. For PWA and sync apps.

    npx shadcn@latest add @minidev/offline-state
  • A 403 style access card explaining that admin rights are needed, with Request access and Switch workspace buttons. Use it wherever a route is role gated.

    npx shadcn@latest add @minidev/permission-denied
  • A small colored dot for user status: online, away, busy or offline, exposed with role status and an aria label. Overlay it on avatars in chat and team lists.

    npx shadcn@latest add @minidev/presence-dot
  • A compact circular progress indicator drawn in SVG with a configurable size, an accent arc, an accessible label and the percentage in monospace below it.

    npx shadcn@latest add @minidev/progress-circle
  • A linear progress bar built on Base UI with track, indicator, label and value parts, a default aria label and smooth width transitions. Matches shadcn progress.

    npx shadcn@latest add @minidev/progress
  • Row of emoji reaction pills with counts, where active reactions get an accent border and aria-pressed. Toggle callbacks suit comments and chat threads.

    npx shadcn@latest add @minidev/reaction-bar
  • Error block that pairs a danger inline alert with a Try again button and an onRetry callback. Defaults to a request failed message you can override in React.

    npx shadcn@latest add @minidev/retry-block
  • 500 error state card with a danger outline, a short explanation, and Retry and Copy request id buttons so users can recover or reach support with context.

    npx shadcn@latest add @minidev/server-error-state
  • Tailwind skeleton loader with a sunken plate and a soft sheen that sweeps every 1.6s, plus a SkeletonCard preset with title, text lines and a media block.

    npx shadcn@latest add @minidev/skeleton
  • Loading spinner in sm, default and lg sizes with role status and an accessible Loading label. Drop it into buttons, cards or full page states in a Tailwind app.

    npx shadcn@latest add @minidev/spinner
  • Tailwind status badge with a tinted fill, hairline border and colored dot in neutral, success, warning, danger, accent and info tones that read as one set.

    npx shadcn@latest add @minidev/status-badge
  • Small status dot in neutral, success, warning, danger and accent tones, built with cva. Place it next to labels for online, healthy or failing indicators.

    npx shadcn@latest add @minidev/status-dot
  • Toast notifications with a toast() API for success, error, warning and promise states. The Toaster stacks cards, fans them out on hover and pauses timers.

    npx shadcn@latest add @minidev/toast
  • Upvote and downvote control with a score between two chevrons, aria-pressed states and click again to undo. Built in React for forums and feedback boards.

    npx shadcn@latest add @minidev/vote-control

Blocks and full pages 2

  • An empty workspace screen with a no projects empty state and new project action, plus follow up buttons to import from Git or invite teammates.

    npx shadcn@latest add @minidev/empty-workspace
  • A React notification center card with a settings action and a stack of notification items showing title, body, relative time and an unread marker.

    npx shadcn@latest add @minidev/notification-center

Using an AI coding agent? Read the agent guide, point it at /llms.txt for the full index, or paste /AGENTS.md into your project. Every component has plain Markdown docs at /docs/<name>.md.

See them live

Galleries render these components with sample data in every state.

Frequently asked questions

Do I need Sonner for toasts?

No. Toast ships its own toast() function with toast.success(), toast.error(), toast.loading(), toast.promise() and toast.dismiss(). Mount <Toaster /> once near the root and call toast() from anywhere. Passing the id that toast.loading() returned updates that toast in place.

Should I use a skeleton or a spinner?

Use a Skeleton when you know the shape of the content that is coming, and a Spinner for short actions like saving a form. Use Progress when you know how far along the task is.

What should an empty state say?

What the space is for and the one action that fills it. EmptyState has an icon, a title, a hint and one action. When a search or filter returns nothing, use EmptySearch, which echoes the query back so people can check what they typed.

Are status colours accessible?

StatusBadge puts the status in text and uses colour only to reinforce it, and its six tones share one lightness so a row of badges reads as one set. StatusDot is decorative next to text; pass label when it stands alone so screen readers hear the status.