.q2w-toast

Toast

Transient success, warning, and status feedback after user actions.

Preview

Layer loaded
1,284 features

Usage

Use this component inside a qgis2web Leaflet export after loading q2w-mapcss.css. Keep generated map JavaScript unchanged unless your workflow needs custom behavior.

<div class="q2w-toast">
  Toast content
</div>

Variants

PatternEffect
.q2w-toastDefault component shell
.q2w-toast--compactDenser layout for small maps
.q2w-toast--floatingFloating map overlay style
data-theme="dark"Uses dark theme tokens automatically

Sub-elements

ClassPurpose
.q2w-toastRoot element for the toast component
.q2w-toast__headOptional header/title region
.q2w-toast__bodyMain component content region
.q2w-toast__actionsOptional action group
← Modal Quick →