Back to library

Inline notice

Show a save confirmation or an input error close to the content it relates to.

All changes saved

Recommended API

Property or elementTypeExample initial valueDescription
role="status"ARIA role—Announce a non-urgent update when the notice appears.
Dismiss labelTextDismiss noticeGive the close icon an accessible name.

States

StateTriggerResult
visibleRender the example.The notice shows a confirmation and a dismiss action.
dismissedActivate Dismiss notice.The notice is replaced by a way to show it again.

CSS variables

VariableTypeDefaultDescription
--q-textcolor #28302aMain text and foreground color.
--q-mutedcolor #70776fColor for secondary text.
--q-font-sizelength 13pxBase size for the component text.
--q-accentcolor #344e41Accent for active controls, indicators and focus.
--q-surfacecolor #ffffffSurface for controls and cards.
--q-bordercolor #dce0d8Color for outlines and dividers.
--q-border-widthlength 1pxThickness of the outline.
--q-radiuslength 10pxBase corner radius.
--q-spacelength 4pxBase unit for gaps and padding.
--q-gaplength calc(var(--q-space) * 2)Space between items, based on the spacing unit.
--q-shadowshadow 0 4px 16px rgb(0 0 0 / 8%)Shadow behind raised elements.
--q-durationtime 175msDuration of visual state transitions.