Notice

Notices provide inline contextual tips or advice to the user.

Overview

Notice provides information on page load and utilizes UI state colors to help convey meaning. Use Notice when required attention is low to moderate. Notice can provide a single action for the user, such as a Link in the Link slot along with a dismissal option. Notice is designed to be used sparingly and not in groups. Don't rely too heavily on Notice for critical messages as its styling is meant to be relatively unobtrusive.

Refer to Modal or Alert when more immediate attention is needed.

Usage

  • Inline tip messaging
  • Advisory or warning messaging
  • Hints and other non-critical info

Sample

Best practices

Below are important guidelines on using the Notice component.

Correct Notice sparingly
Do use Notices sparingly, and for direct user attention regarding a workflow or interface.
Avoid Notice layouts groups
Avoid using Notices as layout components, or in groups.

Accessibility

If using the Link slot, follow the Link accessibility guidance on unique link text.

Keyboard navigation

KeyFunction
TabMoves focus to the next focusable element. If the current focus is the last element, focus will exit the component.
Tab and ShiftMoves focus to previous focusable element. If the current focus is the first element, focus will exit the component.

Writing and copy

Correct Notice writing
Do prefer brevity in Notices. Be quick and specific with its message.
Avoid Notice writing
Avoid large amounts of copy in Notices, and avoid error codes if possible.

API reference

Properties

Slots

Styles

Events

Methods

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.