Inline Alert

Inline alerts display non-modal messages related to objects in a view, often used for form validation to aggregate feedback for multiple fields.

Example

For the inline alert component, both the heading and content props are required.

Inline Alert Basic Example

Variant

The variant prop can set a variant to give inline alerts a semantic meaning.

API Reference

Inline alerts display non-modal messages related to objects in a view.

Returns: Element The rendered inline alert element.

ParametersTypeDefaultDescription
headingAnyThe heading of the Inline Alert.
contentAnyThe content of the Inline Alert.
variantLiteral['neutral', 'info', 'positive', 'notice', 'negative'] |
None
'neutral'The visual style of the Inline Alert.
auto_focusbool |
None
NoneWhether to automatically focus the Inline Alert when it first renders.