Skip to content
mdxcn is now part of Shadcn Labs. details

callout

Callout

An aside between paragraphs: a caveat, a tip or a warning. The body is regular Markdown. For something another person said, use Quote.

use it
Good for an aside the reader should not skip, like a caveat, a tip, or a breaking change.
instead
A quote is Quote. A list of steps is Steps.

warning

type sets the frame title and the glyph. The body is Markdown — write it like a paragraph.

[ warning ]

The CLI copies files into registry/default. It does not add an npm dependency, so there is nothing to update later — edit the source.

import { Callout } from "@/registry/default/callout/callout"

<Callout type="warning">
  The CLI copies files into registry/default. It does not add an npm
  dependency, so there is nothing to update later — edit the source.
</Callout>

install

command

tip with a title

title overrides the type on the frame. Lists work.

[ Palette ]

One accent is the default. Opt in when a second series needs its own hue:

  • palette="duo" for two series
  • palette="multi" for three
import { Callout } from "@/registry/default/callout/callout"

<Callout type="tip" title="Palette">
  One accent is the default. Opt in when a second series needs its own hue:

  - palette="duo" for two series
  - palette="multi" for three
</Callout>
[ PROPS ]
PropTypeDefaultDescription
type"note" | "tip" | "warning" | "danger""note"Sets the frame title and the glyph in the margin.
titlestring—Overrides the frame title. Defaults to the type.
childrenReactNode—Markdown. Paragraphs, lists, inline code, links.
cornerstring"+"Character at each corner of the frame.
frame"box" | "corners" | "rule" | "none""box"box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content.
classNamestring—Passed to the outer frame.