Use for contextual non-blocking notifications like success, error, or info alerts.
appearanceThe visual style of the message. The minimal style is for use cases where you have less space to display information.
descriptionDetermines whether or not assistive technology immediately presents the content to the user, via the aria-live attribute.
typeThe 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>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.Provide clean examples of how to compose multiple components together in order to achieve a specific visual outcome that is curated and maintained by Tecton.
How to build an Account Settings page in Tecton: six independent settings sections covering nickname, notifications, statement delivery, card management, spending limits, and overdraft protection.
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!
This component uses other components in the Tecton library, including:
q2-iconOther components in the Tecton library use this component, including:
q2-action-sheetq2-calendarq2-otpThe changelog provides a detailed history of new features, improvements, and bug fixes going back to Tecton 1.30.0. If the button is disabled, it indicates there have been no detectable changes since then.