Moul UIBeta
Components

DatePicker

DatePickers combine segmented text inputs with a calendar popover for selecting single dates and date ranges.

DatePicker

A form input component combining accessible partitioned date fields with interactive calendar dropdowns.

Preview

Interactive
Meeting Date
Select your preferred meeting date.

Properties

Mode
Variant
Size
Live Code Snippet
import { DatePicker } from '@moul-dev/ui';

export default function Example() {
  return (
    <DatePicker
      label="Meeting Date"
      description="Select your preferred meeting date."
    />
  );
}

Installation

import { DatePicker, DateRangePicker, DateField } from '@moul-dev/ui';

Basic DatePicker

<DatePicker
  label="Meeting Date"
  description="Select your preferred meeting date"
/>

DateRangePicker

Use DateRangePicker for booking reservations or analytics date filtering:

<DateRangePicker
  label="Stay Duration"
  description="Select check-in and check-out dates"
/>

DateField

Use DateField when a standalone masked date input without a popover calendar is desired:

<DateField
  label="Birth Date"
  description="Enter in MM/DD/YYYY format"
/>

Validation & States

<DatePicker
  label="Expiry Date"
  isInvalid
  errorMessage="Please select a valid future date"
/>

Props

DatePicker & DateRangePicker

PropTypeDefaultDescription
labelstring—Accessible label for the input
descriptionstring—Help text rendered below the input
errorMessagestring | ((v) => string)—Error message shown when invalid
size'sm' | 'md' | 'lg''md'Size variant
variant'primary' | 'secondary''primary'Visual background variant
isDisabledbooleanfalseWhether the input is disabled
isInvalidbooleanfalseMarks the field as invalid
minValueDateValue—Earliest selectable date
maxValueDateValue—Latest selectable date

On this page