Callout
A callout box component to display important information.
Use one of the callout variants to draw attention to important information on your page, such as a success, warning, information or error message.
Usage
Add the Callout()
component to your components
list in your main.dart
file:
ContentApp(
components: [
Callout(),
],
)
Then use the callout variants (<Info
, <Warning>
, <Error>
, <Success>
) in your content files to display the callout boxes.
Info Callout
Displays a soft blue box with an info icon, useful for information based information.
This draws attention to useful page information.
<Info>This draws attention to useful page information.</Info>
Warning Callout
Displays a yellow box with a warning icon, useful for warning the user about something.
This draws attention to a warning they should take notice of.
<Warning>This draws attention to a warning they should take notice of.</Warning>