Componentdata0.62 KB gzipZero dependencies
Empty
Perforated placeholder box for zero-state views.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add emptyOr install the full npm package:
npm install bigbulluiUsage
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 helperZero 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, ...propsProps
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { Empty } from "@/components/ui/empty"; <Empty />| Prop | Type | Description |
|---|---|---|
| title | string | Primary heading or title text. (Default: "NOTHING HERE") |
| description | string | Descriptive helper or subtitle text. |
| action | React.ReactNode | Configures action. |
| icon | React.ReactNode | Custom icon node rendered alongside the label. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |