Componentfeedback0.79 KB gzipZero dependencies
Result
Full-panel status screen with icon circle, title, description, and actions slot; confetti-ish subtle burst on success.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add resultOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { Result } from "@/components/ui/result" <Result status="success" title="Done" description="Your changes have been saved." actions={<button>View</button>} />Source code
result.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxresult.tsx135 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export type ResultStatus = "success" | "error" | "warning" | "info"; export type ResultProps = { status: ResultStatus; title: string; description?: string; actions?: React.ReactNode;} & Omit<React.HTMLAttributes<HTMLElement>, "title">; function getIconClass(status: ResultStatus): string { switch (status) { case "success": return "bg-success/10 text-success border-border";Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { Result } from "@/components/ui/result"; <Result />| Prop | Type | Description |
|---|---|---|
| status | ResultStatus | Status type determining icon and colors. |
| title | string | Main title text. |
| description | string | Optional description text. |
| actions | React.ReactNode | Optional action nodes (buttons, etc.). |