Skip to content

Callout API

import { Callout } from '@cimpress-ui/react';

Callouts can optionally be dismissed by the users. To enable this, pass an isDismissible prop to the callout component.

Use the actions prop to render actions within the callout.

Callout with actions

This callout contains actions.

Displays an inline message banner that highlights important information.

See callout usage guidelines.

Ref<HTMLDivElement>

The ref type for this component.

CalloutProps
ReactNode

The content of the callout.

'success' | 'info' | 'warning' | 'critical'

The tone of the callout.

string

The title of the callout.

ReactNode

Optional actions to display at the bottom of the callout. Use Button or LinkButton components only.

boolean

Whether the callout can be dismissed by the user.

Defaults to false .
() => void

Callback function to be called when the dismiss button is pressed. Makes the callout controlled.

string

The element's unique identifier. See MDN.

boolean

Use this attribute to "claim" the component tree for exclusive Cimpress UI usage.

string

Sets the CSS className for the element. Only use as a last resort. Use style props instead.

See styling guide.

CSSProperties

Sets the CSS style for the element. Only use as a last resort. Use style props instead.

See styling guide.

StyleProps
Responsive<Spacing | "auto">

The amount of margin applied to all edges of this component.

Responsive<Spacing | "auto">

The amount of margin applied to the left and right edges of this component. Takes priority over margin.

Responsive<Spacing | "auto">

The amount of margin applied to the top and bottom edges of this component. Takes priority over margin.

Responsive<Spacing | "auto">

The amount of margin applied to the top edge of this component. Takes priority over marginY and margin.

Responsive<Spacing | "auto">

The amount of margin applied to the right edge of this component. Takes priority over marginX and margin.

Responsive<Spacing | "auto">

The amount of margin applied to the bottom edge of this component. Takes priority over marginY and margin.

Responsive<Spacing | "auto">

The amount of margin applied to the left edge of this component. Takes priority over marginX and margin.