import * as react_jsx_runtime_js from 'react/jsx-runtime.js'; import { FC, HTMLAttributes, ReactNode } from 'react'; declare const TypeToEmoji: { default: react_jsx_runtime_js.JSX.Element; error: react_jsx_runtime_js.JSX.Element; info: react_jsx_runtime_js.JSX.Element; warning: react_jsx_runtime_js.JSX.Element; important: react_jsx_runtime_js.JSX.Element; }; type CalloutType = keyof typeof TypeToEmoji; type CalloutProps = HTMLAttributes & { /** * Defines the style of the callout and determines the default icon if `emoji` is not provided. * * If set to `null`, no border, background, or text styling will be applied. * @default 'default' */ type?: CalloutType | null; /** * Icon displayed in the callout. Can be a string emoji or a custom React element. * * Default values based on `type`: * - `` for `type: 'default'` * - `` for `type: 'error'` * - `` for `type: 'info'` * - `` for `type: 'warning'` * - `` for `type: 'important'` * @default Determined by `type` */ emoji?: ReactNode; }; /** * 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. * * * * A **callout** is a short piece of text intended to attract attention. * * * @usage * ### Default * * Helpful advice for doing things better or more easily. * * ```mdx * import { Callout } from 'nextra/components' * * Helpful advice for doing things better or more easily. * ``` * * ### Info * * * Useful information that users should know, even when skimming content. * * * ```mdx * import { Callout } from 'nextra/components' * * * Useful information that users should know, even when skimming content. * * ``` * * ### Warning * * * Urgent info that needs immediate user attention to avoid problems. * * * ```mdx * import { Callout } from 'nextra/components' * * * Urgent info that needs immediate user attention to avoid problems. * * ``` * * ### Error * * * Advises about risks or negative outcomes of certain actions. * * * ```mdx * import { Callout } from 'nextra/components' * * * Advises about risks or negative outcomes of certain actions. * * ``` * * ### Important * * * Key information users need to know to achieve their goal. * * * ```mdx * import { Callout } from 'nextra/components' * * * Key information users need to know to achieve their goal. * * ``` * * ### Custom icon * * Nextra has 13k stars on GitHub! * * ```mdx * import { Callout } from 'nextra/components' * * Nextra has 13k stars on GitHub! * ``` */ declare const Callout: FC; export { Callout };