Componentdata0.62 KB gzipZero dependencies

Empty

Perforated placeholder box for zero-state views.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add empty

Or install the full npm package:

npm install bigbullui

Usage

tsx7 lines
import { Empty } from "@/components/ui/empty"; <Empty  title="NO TICKETS"  description="No stubs found in your collection."  action={<Button size="sm">Browse events</Button>}/>

Source code

empty.tsx + 1 helper

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

tsxempty.tsx64 lines
import * as React from "react";import { cn } from "./lib/utils"; export interface EmptyProps extends React.HTMLAttributes<HTMLDivElement> {  title?: string;  description?: string;  action?: React.ReactNode;  icon?: React.ReactNode;  className?: string;} export function Empty({  title = "NOTHING HERE",  description = "No stubs or records found in this section.",  action,  icon,  className,  ...props

Props

Interactive Prop Playground

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

tsx3 lines
import { Empty } from "@/components/ui/empty"; <Empty />
PropTypeDescription
titlestringPrimary heading or title text. (Default: "NOTHING HERE")
descriptionstringDescriptive helper or subtitle text.
actionReact.ReactNodeConfigures action.
iconReact.ReactNodeCustom icon node rendered alongside the label.
classNamestringOptional Tailwind or custom CSS classes merged with component styles.