Componentfeedback0.85 KB gzipZero dependencies

Callout

Tactile admission callout note with dashed borders, status tones and dismiss action.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add callout

Or install the full npm package:

npm install bigbullui

Usage

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 helper

Zero 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 />
PropTypeDescription
titlestringOptional callout title
variant"info" | "success" | "warning" | "danger" | "neutral"Callout tone
iconReact.ReactNodeCustom icon node rendered alongside the label.
dismissiblebooleanWhether user can close the callout
onDismiss() => voidCallback on dismiss
notchedbooleanToggles notched. (Default: true)
classNamestringOptional Tailwind or custom CSS classes merged with component styles.
childrenReact.ReactNodeChild elements rendered inside the component.