Componentfeedback0.85 KB gzipZero dependencies
Callout
Tactile admission callout note with dashed borders, status tones and dismiss action.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add calloutOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { Callout } from "@/components/ui/callout"; <Callout title="ADMISSION NOTICE" variant="info">Gate 4 opens at 19:30.</Callout>Source code
callout.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxcallout.tsx114 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface CalloutProps extends React.HTMLAttributes<HTMLDivElement> { title?: string; variant?: "info" | "success" | "warning" | "danger" | "neutral"; icon?: React.ReactNode; dismissible?: boolean; onDismiss?: () => void; notched?: boolean; className?: string; children: React.ReactNode;} const VARIANT_STYLES = { info: "border-foreground bg-card text-foreground",Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { Callout } from "@/components/ui/callout"; <Callout />| Prop | Type | Description |
|---|---|---|
| title | string | Optional callout title |
| variant | "info" | "success" | "warning" | "danger" | "neutral" | Callout tone |
| icon | React.ReactNode | Custom icon node rendered alongside the label. |
| dismissible | boolean | Whether user can close the callout |
| onDismiss | () => void | Callback on dismiss |
| notched | boolean | Toggles notched. (Default: true) |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |
| children | React.ReactNode | Child elements rendered inside the component. |