Use description for the rule above the field and help_text for the hint below it.
We will confirm by email within one business day.
September 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
Pick any weekday in the next month.
.heex
Copy code
<.date_pickername="appointment"label="Appointment date"description="We will confirm by email within one business day."help_text="Pick any weekday in the next month."/>
Custom placeholder
September 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
.heex
Copy code
<.date_pickername="due_date"placeholder="Choose a due date"/>
Pre-selected value
Pass a Date, NaiveDateTime, DateTime, or ISO 8601 string.
Set clearable to render a reset button inside the field. It only appears once a value is present, and clearing dispatches a change event so phx-change bindings are notified. Works in every mode. Multiple selection clears every date.
<.date_pickername="deadline"label="Deadline"errors={["Please pick a date in the future"]}/>
Leading icon
Use :inner_prefix to place an icon inside the toggle border.
September 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
.heex
Copy code
<.date_pickername="leading_icon_date"placeholder="Select a date"><:inner_prefix><.iconname="hero-calendar"class="icon"/></:inner_prefix></.date_picker>
Outer prefix label
:outer_prefix renders content in an attached cell, sharing the field's border.
Due
September 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
.heex
Copy code
<.date_pickername="due"placeholder="Select a date"><:outer_prefixclass="px-3 text-foreground-soft">Due</:outer_prefix></.date_picker>
Outer suffix action
Pair the field with a button or other action through :outer_suffix.
September 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
.heex
Copy code
<.date_pickername="filter_date"placeholder="Filter by date"><:outer_suffix><.buttonvariant="outline">Apply</.button></:outer_suffix></.date_picker>
Min and max
Constrain the selectable range. Calendar navigation buttons disable past the boundaries.