ProvisioningStatus
neon-ui/provisioning-statusFreeComponent
Provisioning, waking, and error panel states composing NeonLoader with a live status detail line.
Install it
npx shadcn@latest add https://ui.neon.com/r/provisioning-status.jsonSource
1"use client";23import type { ComponentProps, ReactNode } from "react";4import { useState } from "react";56import { AnimatedWash } from "@/components/animated-wash/animated-wash";7import { NeonLoader } from "@/components/neon-loader/neon-loader";8import { Button } from "@/components/ui/button";9import { cn } from "@/lib/utils";1011export type ProvisioningState = "provisioning" | "waking" | "error";1213export type ProvisioningStatusProps = Omit<14 ComponentProps<"div">,15 "title" | "children"16> & {17 /** Lifecycle state the panel narrates. */18 state?: ProvisioningState;19 /** Override the state's default headline. */20 title?: string;21 /**22 * The status detail line, e.g. "Creating Neon project…". Swapping it23 * crossfades in place — feed it live progress from your API.24 */25 detail?: string;26 /** Renders the retry action in the error state. */27 onRetry?: () => void;28 /** Label for the retry action. */29 retryLabel?: string;30 /**31 * "panel" draws the house surface; "bare" renders naked for32 * embedding inside an already-bordered pane.33 */34 variant?: "panel" | "bare";35 /** Vertical breathing room. */36 size?: "sm" | "md" | "lg";37 /** Extra content under the detail line, e.g. a cancel link. */38 footer?: ReactNode;39};4041/* ─────────────────────────────────────────────────────────42 * PANEL STORYBOARD43 *44 * One quiet stage, three acts. The frame and rhythm never45 * change between states — only the voice does.46 *47 * provisioning the NeonLoader resolves out of grain, the48 * headline holds foreground, and the detail49 * line shimmers; swap `detail` as your API50 * reports progress and the old step rolls51 * out the top as the new one rises in52 * (300ms, same row, zero shift)53 * waking identical staging, wake copy — the54 * sandbox exists, it's just cold55 * ambience the AnimatedWash breathes under56 * everything at low intensity — primary57 * green while working, destructive and58 * dimmer for the error act (the panel59 * cools, it doesn't shout); always well60 * below the loader's grain61 * error the loader yields to the mono error tag +62 * foreground sentence, the detail cools to63// … truncated
What it pulls in
Other registry items
Files it writes
More from neon-ui
All 77 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| ActivityFeedactivity-feed | neon-ui | Components | Free | 2 deps | |
| AgentChatagent-chat | neon-ui | Components | Free | 6 deps | |
| AnimatedWashanimated-wash | neon-ui | Components | Free | no deps · 2 files | |
| ApiKeyListapi-key-list | neon-ui | Components | Free | 2 deps | |
| AppCardapp-card | neon-ui | Components | Free | 2 deps | |
| AppCreatorapp-creator | neon-ui | Components | Free | 2 deps | |
| AuthFormauth-form | neon-ui | Components | Free | no deps | |
| AutoscaleChartautoscale-chart | neon-ui | Components | Free | 1 dep |
