Callout

<wa-callout> Stable Since 3.0

Callouts display important messages inline with surrounding content. Use them to highlight tips, warnings, errors, or other information users should not miss.

This is a standard callout. You can customize its content and even the icon.

Examples

Link to This Section

Variants

Link to This Section

Set the variant attribute to change the callout's variant.

This is super informative
You can tell by how pretty the callout is.

Your changes have been saved
You can safely exit the app now.

Your settings have been updated
Settings will take effect on next login.

Your session has ended
Please login again to continue.

Your account has been deleted
We're very sorry to see you go!

Appearance

Link to This Section

Use the appearance attribute to change the callout's visual appearance (the default is filled-outlined).

This accent callout draws attention
This callout is both filled and outlined
This callout is only filled
Here's an outlined callout
No bells and whistles on this plain callout

Sizes

Link to This Section

Use the size attribute to change a callout's size.

Extra-small callout for minimal emphasis.
Small callout for a bit of emphasis.
Medium callout, the default size.
Large callout for more emphasis.
Extra-large callout for maximum emphasis.

Without Icons

Link to This Section

Icons are optional. Simply omit the icon slot if you don't want them.

Nothing fancy here, just a simple callout.

Styling

Link to This Section

You can customize the callout's appearance mostly by setting regular CSS properties. background, border, border-radius, color, padding, margin, etc. work as expected.

Importing

Link to This Section

If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick a component manually, use one of the following snippets.

CDN npm Self-Hosted React

Import this component directly from the CDN:

import 'https://ka-f.webawesome.com/[email protected]/components/callout/callout.js';

After installing Web Awesome via npm, import this component:

import '@awesome.me/webawesome/dist/components/callout/callout.js';

If you're self-hosting Web Awesome, import this component from your server:

import './webawesome/dist/components/callout/callout.js';

To import this component for React 18 or below, use the following code:

import WaCallout from '@awesome.me/webawesome/dist/react/callout/index.js';

Slots

Link to This Section

Learn more about using slots.

Attributes & Properties

Link to This Section

Learn more about attributes and properties.

CSS parts

Link to This Section

Learn more about CSS parts.

Need a hand? Report a bug Ask for help
    No results