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
Open ↗

Installation

Tokens guide →

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

npx bigbullui add result

Or install the full npm package:

npm install bigbullui

Usage

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 helper

Zero 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 />
PropTypeDescription
statusResultStatusStatus type determining icon and colors.
titlestringMain title text.
descriptionstringOptional description text.
actionsReact.ReactNodeOptional action nodes (buttons, etc.).