๐ŸงจPre-releaseYou shouldn't use this library-1 min read

CalloutProps API Reference

Prop reference

TitleTypeDefaultDescription
titlestring
โ€“

Title of the callout, displayed in bold

variant'note'
| 'tip'
| 'warning'
'note'

Variant of the callout, affects default colour and icon.

iconReactElement
โ€“

BYO icon. Will be cloned with size prop.

disableIconboolean
false

Hides the default (or provided) icon.

childrenReactNode
โ€“

Content of the callout, can be any valid React node, usually just text.

* Props marked with an asterisk are required.

CSS target reference

ExportCSS Class TargetDescription
CalloutTargetClassRoot.NPUI-Callout-root

Root of the callout

CalloutTargetClassIcon.NPUI-Callout-icon

Icon of the callout

CalloutTargetClassContent.NPUI-Callout-content

Content of the callout, wraps the title and text.

CalloutTargetClassTitle.NPUI-Callout-title

Title of the callout

CalloutTargetClassText.NPUI-Callout-text

Text of the callout

Exports are available from /src/components/callout/callout.tsx or from
Related APIs
Made by .