PyBlade/ui
Menu⌄
DocsComponentsDate picker

Date picker

A button that opens a calendar; the chosen date is posted as YYYY-MM-DD.

Alpine.jsdepends on calendar1 file

Installation

pyblade-ui add date-picker

Usage

The tag <pb-ui.date-picker> is available in all your templates.

<pb-ui.date-picker name="due" placeholder="Pick a date" locale="fr-FR" :week_start="1" class="w-60" />

Examples

In a form

Props

PropDefault
name''
value''
placeholder'Pick a date'
locale'en-US'
week_start0
min''
max''

Any other attribute (class, id, x-on:click, hx-post…) is passed to the root element; your Tailwind classes win over the component's.