Skip to content

Latest commit

 

History

History
65 lines (49 loc) · 1.23 KB

callout.mdx

File metadata and controls

65 lines (49 loc) · 1.23 KB

Callout Component

A built-in component provided by nextra-theme-docs.

Example

import Callout from 'nextra-theme-docs/callout'

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.
<Callout emoji="👾">
  **Space Invaders** is a 1978 shoot 'em up arcade game developed by Tomohiro
  Nishikado.
</Callout>

Warning

This API will be deprecated soon.
<Callout type="warning" emoji="⚠️">
  This API will be deprecated soon.
</Callout>

Error

This is a dangerous feature that can cause everything to explode.
<Callout type="error" emoji="️🚫">
  This is a dangerous feature that can cause everything to explode.
</Callout>

React Component

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