callout
Callout
An aside between paragraphs — a caveat, a tip, a warning. The body is Markdown. A quote is Quote.
warning
type sets the frame title and the glyph. The body is Markdown — write it like a paragraph.
The CLI copies files into registry/default. It does not add an npm dependency, so there is nothing to update later — edit the source.
MDX
```
+----------------------- [ 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. |
| |
+------------------------------------------------------------+
```install
command
tip with a title
title overrides the type on the frame. Lists work.
One accent is the default. Opt in when a second series needs its own hue:
- palette="duo" for two series
- palette="multi" for three
MDX
```
+----------------------- [ 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 |
| |
+-----------------------------------------------------------+
```| Prop | Type | Default | Description |
|---|---|---|---|
| type | "note" | "tip" | "warning" | "danger" | "note" | Sets the frame title and the glyph in the margin. |
| title | string | — | Overrides the frame title. Defaults to the type. |
| children | ReactNode | — | Markdown. Paragraphs, lists, inline code, links. |
| corner | string | "+" | Character at each corner of the frame. |
| className | string | — | Passed to the outer frame. |