Feedback State Panel

One surface for the screens nobody designs — empty, error, offline, permission and success — each with its own glyph and motion character, copy that names the next step, and a primary action with a real loading → success / error loop.

Try it: Switch states below; press Try again on the error state.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/feedback-state-panel.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/feedback-state-panel. You can also copy the source into components/ui/feedback-state-panel.tsx (view on GitHub).

Usage

import { FeedbackStatePanel } from '@/components/ui/feedback-state-panel'

Props

Component props
PropTypeDefaultNotes
variant / defaultVariant / onVariantChange'empty' | 'error' | 'offline' | 'permission' | 'success''empty'Controlled or uncontrolled state.
title / description / primaryLabel / secondaryLabelstring—Override the copy for the current state.
onPrimary(variant) => void | Promise<void>—Primary action; promise drives the loading state.
onSecondary() => void—Secondary action.
showSwitcher / titleAsboolean / h2–h4false / 'h3'Render the state switcher; heading level.
classNamestring—Extra classes merged onto the root.

Dependencies

  • motion
  • lucide-react
  • Keyboard Shortcut Hint

    A cheat sheet of tactile keycaps that knows your platform (⌘ ⌥ ⇧ vs Ctrl Alt Shift); hold real keys and matching caps sink and light up, complete a combo and its row confirms. Exports Kbd for inline…

  • Date Range Picker

    A calendar that previews the range as you hover with a continuous tinted band between endpoint pills, month pages that slide in the direction you move, preset chips, full grid keyboard support and a…

  • Inset Settings List

    An iOS-style grouped inset list with tinted icon tiles, hairlines inset to the label edge, switches whose knob stretches on press, and choice rows that push a detail page with a parallax slide and…

  • Sortable Data Table

    A dense, quiet deployments table: sortable headers with aria-sort, search and status filter chips, rows that glide to their new order, hairline hover and selected tints, a bulk-action bar that…

  • Rolling Number Stepper

    A quantity field whose changed digits roll in the direction of travel, accelerates on press-and-hold like a hardware stepper, and nudges sideways with a reason at its bounds. A real spinbutton you…

  • Onboarding Stepper

    A three-question setup flow on one continuous surface: a progress capsule stretches into the current step with a shared-layout spring, panels slide in the direction of travel, validation speaks…

See all 14 Product UI components