Synapse

Components Forms

Date picker

Forms date_picker

A date input field.

Markup

Drops in as data-pb-block="date_picker".

html
<label data-pb-block="date_picker" class="pb-field" style="display:block;font-family:inherit;max-width:24rem;">
  <span class="pb-field__label" style="display:block;font-size:0.875rem;font-weight:600;color:var(--pb-ink,#0f172a);margin-bottom:0.35rem;">Date</span>
  <input type="date" name="date" style="width:100%;padding:0.6rem 0.75rem;border:1px solid #cbd5e1;border-radius:0.5rem;font:inherit;color:var(--pb-ink,#0f172a);box-sizing:border-box;">
</label>

Settings

Everything a block can be configured to do:

Bind to State
Drive content reactively from a State with declarative Alpine — x-text, x-show or x-model over $store.app.<stateKey>.
On event → run a Flow
Wire an interaction to a Flow: set data-pb-flow="<slug>" and data-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="date_picker" so it imports as a labelled, editable component.
Field name
The control's name maps to a collection field key — the runtime collects it on submit of the surrounding Form.
Validation
Mark it required; the collection field's type and options (e.g. email, select choices) drive server-side validation.