Popup
Feature popup with title, subtitle, and tabular attributes.
Preview
Mekarjaya
ZNT-021
value720k
area12.4 ha
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-popup"> Popup content </div>
Variants
| Pattern | Effect |
|---|---|
.q2w-popup | Default component shell |
.q2w-popup--compact | Denser layout for small maps |
.q2w-popup--floating | Floating map overlay style |
data-theme="dark" | Uses dark theme tokens automatically |
Sub-elements
| Class | Purpose |
|---|---|
.q2w-popup | Root element for the popup component |
.q2w-popup__head | Optional header/title region |
.q2w-popup__body | Main component content region |
.q2w-popup__actions | Optional action group |