.q2w-btn

Button

Action buttons with primary, ghost, pill, icon, disabled, and loading states.

Preview

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-btn">
  Button content
</div>

Variants

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

Sub-elements

ClassPurpose
.q2w-btnRoot element for the button component
.q2w-btn__headOptional header/title region
.q2w-btn__bodyMain component content region
.q2w-btn__actionsOptional action group
← Sheet Control →