Skip to contentSkip to Content
Feedback
ComponentsCallout

Callout

Highlighted message blocks for notes, warnings, tips, and other important information. Each type has its own icon; the colors come from the theme tokens below.

API

Callout

PropTypeDefaultDescription
type"note" | "warning" | "info" | "tip" | "check" | "danger""info"The visual style of the callout.
titlestring—Optional bold title displayed above the content.
childrenReactNode—The callout body content.

Available Types

TypeColor tokenUse for
note--folio-tone-note-*General notes and remarks.
warning--folio-tone-warning-*Important warnings the reader should not miss.
info--folio-tone-info-*Neutral supplementary information.
tip--folio-tone-tip-*Helpful tips and best practices.
check--folio-tone-check-*Success states or confirmation of correct behavior.
danger--folio-tone-danger-*Critical warnings about destructive or breaking behavior.

Each type reads its tone’s -fill for the background, -ink for the title and text, and -accent for the icon and border. The six tones differ on every preset; CSS Variables lists their defaults.

Example

Python 3.10+

This library requires Python 3.10 or later.

This function modifies the input array in place.

Performance

Use batch mode for datasets larger than 10,000 rows.

All tests passing

The test suite completed successfully with 100% coverage.

Breaking Change

The legacy_mode parameter was removed in v2.0.

This is a neutral informational message with no title.

<Callout type="note" title="Python 3.10+"> This library requires Python 3.10 or later. </Callout> <Callout type="warning"> This function modifies the input array in place. </Callout> <Callout type="tip" title="Performance"> Use batch mode for datasets larger than 10,000 rows. </Callout> <Callout type="check" title="All tests passing"> The test suite completed successfully with 100% coverage. </Callout> <Callout type="danger" title="Breaking Change"> The `legacy_mode` parameter was removed in v2.0. </Callout> <Callout type="info"> This is a neutral informational message with no title. </Callout>