Callout

Tailwind callout box in info, success, warning or danger tones with an optional bold title. Uses the note role, which suits docs, forms and setup steps.

src/registry/ui/callout.tsx/r/callout.json

Info

Stay on semantic tokens.

Warning

Audit before merge.

Tones

Installation#

bash
npx shadcn@latest add @minidev/callout

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/callout.json

Usage#

tsx
import { Callout } from "@/components/ui/callout"

export function Example() {
  return (
    <Callout title="Note" tone="info">Semantic callout using Hairline borders.</Callout>
  )
}

API reference#

Callout props
PropTypeDefault
tonekeyof typeof tones"info"
titlestring-

Also accepts every prop of <div>, passed through to the root element.

Examples#

All alerts, toasts and empty states

Learn more