Componentfeedback0.9 KB gzipZero dependencies

Migration Banner

Data migration banner with progress bar and expandable detail.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add migration-banner

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { MigrationBanner } from "@/components/ui/migration-banner"; <MigrationBanner />

Source code

migration-banner.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxmigration-banner.tsx49 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface MigrationBannerProps extends React.HTMLAttributes<HTMLDivElement> {  title?: string;  /** 0-100 */  progress: number;  detail?: string;} /** Data migration status banner: progress bar + expandable details. */export function MigrationBanner({ title = "Migrating data to new system", progress, detail, className, ...props }: MigrationBannerProps) {  const [open, setOpen] = React.useState(false);  const pct = Math.min(100, Math.max(0, Math.round(progress)));   return (

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { MigrationBanner } from "@/components/ui/migration-banner"; <MigrationBanner />
PropTypeDescription
titlestringPrimary heading or title text. (Default: "Migrating data to new system")
progressnumber0-100
detailstringConfigures detail.