Components Sections
Features
Sections features
A grid of feature cards.
Markup
Drops in as data-pb-block="features".
html
<section data-pb-block="features" class="pb-features" style="padding:4rem 1.5rem;">
<h2 class="pb-features__title" style="text-align:center;font-size:2rem;margin:0 0 2.5rem;">Features</h2>
<div class="pb-features__grid" style="display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;max-width:64rem;margin:0 auto;">
<div class="pb-features__item" style="padding:1.5rem;border:1px solid #e2e8f0;border-radius:0.75rem;"><h3 style="margin:0 0 0.5rem;">Feature one</h3><p style="color:#475569;margin:0;">Describe the benefit.</p></div>
<div class="pb-features__item" style="padding:1.5rem;border:1px solid #e2e8f0;border-radius:0.75rem;"><h3 style="margin:0 0 0.5rem;">Feature two</h3><p style="color:#475569;margin:0;">Describe the benefit.</p></div>
<div class="pb-features__item" style="padding:1.5rem;border:1px solid #e2e8f0;border-radius:0.75rem;"><h3 style="margin:0 0 0.5rem;">Feature three</h3><p style="color:#475569;margin:0;">Describe the benefit.</p></div>
</div>
</section>Settings
Everything a block can be configured to do:
- Bind to State
- Drive content reactively from a State with declarative Alpine —
x-text,x-showorx-modelover$store.app.<stateKey>. - On event → run a Flow
- Wire an interaction to a Flow: set
data-pb-flow="<slug>"anddata-pb-flow-event="click|submit|hover|change|…". The flow's returned actions update the page. - Link to a page
- Navigate to another published page on click with
data-pb-page="<slug>". - Styles & classes
- Edit spacing, colour and layout visually in the GrapesJS editor. The wrapper carries
data-pb-block="features"so it imports as a labelled, editable component.