Inline notice
Show a save confirmation or an input error close to the content it relates to.
All changes saved
Recommended API
| Property or element | Type | Example initial value | Description |
|---|---|---|---|
role="status" | ARIA role | — | Announce a non-urgent update when the notice appears. |
Dismiss label | Text | Dismiss notice | Give the close icon an accessible name. |
States
| State | Trigger | Result |
|---|---|---|
visible | Render the example. | The notice shows a confirmation and a dismiss action. |
dismissed | Activate Dismiss notice. | The notice is replaced by a way to show it again. |
CSS variables
| Variable | Type | Default | Description |
|---|---|---|---|
--q-text | color | #28302a | Main text and foreground color. |
--q-muted | color | #70776f | Color for secondary text. |
--q-font-size | length | 13px | Base size for the component text. |
--q-accent | color | #344e41 | Accent for active controls, indicators and focus. |
--q-surface | color | #ffffff | Surface for controls and cards. |
--q-border | color | #dce0d8 | Color for outlines and dividers. |
--q-border-width | length | 1px | Thickness of the outline. |
--q-radius | length | 10px | Base corner radius. |
--q-space | length | 4px | Base unit for gaps and padding. |
--q-gap | length | calc(var(--q-space) * 2) | Space between items, based on the spacing unit. |
--q-shadow | shadow | 0 4px 16px rgb(0 0 0 / 8%) | Shadow behind raised elements. |
--q-duration | time | 175ms | Duration of visual state transitions. |