Date Picker

Pop up a calendar, click a date, and it’s set. It’s like pointing at a day on the wall calendar, but digital and without the thumbtacks..

Basic

A date picker combines a DateField with a Calendar popover, allowing users to either type in or select a date and time.

Event date

Installation

If you hit any issues, make sure you check out the installation guide here.

Composed Components

When you plug this component from the CLI, it autoloads all the composed components. No need to toss 'em in one at a time.

The Date Picker's decked out with several components to make it bangin'.

Button

Buttons be the real MVPs, man! They're all about gettin' stuff done, whether it’s slamming that form submit or hoppin' to another page.

Calendar

Manage your dates, plan your schedule, and keep track of important events, all in one place, like a personal assistant for your time.

Date Field

Enter dates directly into this field, perfect for logging events or deadlines with the precision of a historian noting important events.

Popover

Hover or click to see more content, like popping open a tent, useful for additional info without leaving the context..

Manual Installation

Sometimes, using the CLI is the way to go, so make sure you install the necessary dependencies for the components you want to use.

Date and Time

While not a full-fledged date-time picker, this setup lets you edit both date and time in a segmented field.

Event date

Validation

To ensure that the date picker is filled out, use the isRequired prop.

Delivery date

Custom Validation

The validate function is your go-to for custom validation rules. It checks the current date value and returns an error message string or strings if the value doesn't meet your criteria.

Delivery date

Controlled

Take control of your date picker by passing a value prop, which allows you to manage the selected date.

Thursday, November 28, 2024

2024-11-28

Event date

Disabled

When the date picker is disabled, it becomes non-interactive and visually represents a disabled state.

Event date