Present contextual notifications to the user without blocking other content.
To use the q2-message
element without the role="alert"
, add the description
attribute to the element. This supports two key scenarios:
aria-describedby
attribute.appearance
The visual style of the message. The minimal style is for use cases where you have less space to display information.
description
Determines whether or not assistive technology immediately presents the content to the user, via the aria-live
attribute.
type
The type of message to display on the screen.
The q2-message
element exposes methods that can be used to perform various actions on the component.
Prompts assistive technology to announce the message.
present() => Promise<void>
This component uses other components in the Tecton library, including:
q2-icon
Other components in the Tecton library use this component, including:
q2-action-sheet
q2-calendar
0.28.0
The following CSS variables are available to override the default theme styles of the q2-message
component.
Many Tecton components consume other components to maintain visual and functional consistency. If you are looking for a CSS variable you think should exist but are not seeing it, it may be defined in one of the dependent components below. Either way, if you think it's something we should expose more conveniently, let us know!