Componentfeedback0.9 KB gzipZero dependencies
Migration Banner
Data migration banner with progress bar and expandable detail.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add migration-bannerOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { MigrationBanner } from "@/components/ui/migration-banner"; <MigrationBanner />Source code
migration-banner.tsx + 1 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| title | string | Primary heading or title text. (Default: "Migrating data to new system") |
| progress | number | 0-100 |
| detail | string | Configures detail. |