Skip to content
Documentation
nextra-theme-docs
Built-ins
Callout

Callout

Callout Component

A built-in component to show important information to the reader.

Example

💡

A callout is a short piece of text intended to attract attention.

A callout is a short piece of text intended to attract attention.

⚠️

A callout is a short piece of text intended to attract attention.

🚫

A callout is a short piece of text intended to attract attention.

Usage

Default

👾

Space Invaders is a 1978 shoot 'em up arcade game developed by Tomohiro Nishikado.


_10
import { Callout } from '@visulima/nextra-theme-docs'
_10
_10
<Callout emoji="👾">
_10
**Space Invaders** is a 1978 shoot 'em up arcade game developed by Tomohiro
_10
Nishikado.
_10
</Callout>

Info

ℹ️

Today is Friday.


_10
import { Callout } from '@visulima/nextra-theme-docs'
_10
_10
<Callout type="info" emoji="ℹ️">
_10
Today is Friday.
_10
</Callout>

Warning

⚠️

This API will be deprecated soon.


_10
import { Callout } from '@visulima/nextra-theme-docs'
_10
_10
<Callout type="warning" emoji="⚠️">
_10
This API will be deprecated soon.
_10
</Callout>

Error

🚫

This is a dangerous feature that can cause everything to explode.


_10
import { Callout } from '@visulima/nextra-theme-docs'
_10
_10
<Callout type="error" emoji="️🚫">
_10
This is a dangerous feature that can cause everything to explode.
_10
</Callout>

API

The Callout component takes the following props:

type (optional)

The type of the Callout.

  • Type: 'default' | 'info' | 'warning' | 'error'
  • Default: 'default'

emoji (optional)

The icon to show in the Callout. You can also show your custom icon using this prop.

  • Type: ReactNode
  • Default: '💡'

children (optional)

The content of the Callout.

  • Type: ReactNode
  • Default: null