Message
NewClear feedback, right where it matters. Inline messages for updates, guidance and form validation.
Basic
Severity
Use words and icons alongside color to communicate the meaning.
Outlined and simple
Sizes
Custom content
Invite a colleague to start collaborating.
Forms
Submit an empty name to see the error. This example does not send data.
Usage and API
import { AvMessage } from 'avero-ui';
<av-message severity="success">Success: changes saved.</av-message>
<av-message severity="error" variant="simple" avSize="sm">
Error: username is required.
</av-message>
<av-message severity="info">
<ng-template #icon><span>★</span></ng-template>
You can provide your own content and icon.
</av-message>Inputs: severity (info by default), variant (filled, outlined, simple), avSize (sm, md, lg), text, icon (application CSS class), and messageRole (alert, status, none). Project content or supply text; #icon overrides the icon class and default symbol.
Errors default to role="alert"; other messages use role="status". Use messageRole="none" for static examples or when a parent already announces updates. Icons are decorative. Keep meaningful labels in the text and connect validation messages to their fields with aria-describedby.
Theme with --av-message-color, --av-message-background, --av-message-border and --av-message-radius. Check contrast when overriding colors.