Skip to main content

Anatomy

Date Field Single consists of five primary elements that enable users to select a single date through text input or a calendar picker.
Anatomy of the Date Field Single component
  1. Label - Identifies the field and its purpose
  2. Input field - Text input for manual date entry with format mask
  3. Helper text (Optional) - Description, format hint or error message

Options

Date Field Single supports the following configurations to accommodate different use cases and regional preferences.

Date Format Modes

Date Field Single supports two date format modes to match regional conventions. The default format is mm/dd/yyyy for US audiences, while dd/mm/yyyy is available for international users.
ModeFormatUse Case
mm/dd/yyyyDefaultUS date format
dd/mm/yyyyOptionalInternational date format

Sizes

Three size options accommodate different layout densities and visual hierarchies.
SizeHeight
Small32px
Medium40px
Large48px

Calendar Picker

The calendar picker can be disabled when manual text entry is preferred or when the calendar interface is not suitable for the use case.

Behavior

Date Field Single responds to user interaction with distinct visual states and validation feedback.

Visual States

The component displays different visual states to communicate field status and interactivity. Default state shows the field ready for input. Focus state highlights the active field. Error state displays validation messages when dates are invalid or required fields are empty. Disabled state prevents interaction while maintaining visual context.

Calendar Interaction

Clicking the input field opens a popover calendar. Users can navigate months and select dates directly from the calendar. The calendar closes automatically after selection, and the selected date populates the input field.

Validation

Date Field Single validates input in real time. The component checks for parseable dates, required field completion, date constraints (min/max dates), and unavailable dates or days of the week. Error messages appear below the field when validation fails.

Usage Guidelines

When to Use

Use Date Field Single when you need to:
  • Capture a single, specific date
  • Provide calendar visual context for date selection
  • Support both manual entry and visual selection
  • Validate dates against constraints like minimum or maximum dates

When not to use

Avoid using Date Field Single for:

Alternatives

Date Field Single vs Date Field Yearless

Use Date Field Single when the year is essential to the date selection, such as appointment scheduling or deadline setting. Use Date Field Yearless when the year is irrelevant, such as recurring annual events or template dates.

How to Use

Labeling and Context

Provide clear, descriptive labels that communicate the purpose of the date selection. Labels should indicate what the date represents and why it’s needed. Use helper text or descriptions when additional context helps users understand constraints or requirements.
Do
  • Write labels that clearly communicate the purpose of the date selection
  • Include format hints to guide users on expected input format
  • Set appropriate date constraints (min/max dates) to prevent invalid selections
  • Display validation errors immediately when they occur
  • Use the calendar picker to provide visual date selection when helpful

Anti-pattern: Ambiguous Context and Format

Avoid creating confusion by omitting format guidance or using Date Field Single for dates where year information is irrelevant.
Don't
  • Use Date Field Single for recurring annual events where year doesn’t matter
  • Omit format hints when the date format might be ambiguous to users
  • Hide validation errors until form submission
  • Use placeholder text to communicate date format instead of format hints
  • Create labels that don’t clearly indicate what date is being selected

Content

Content within Date Field Single should be clear, concise, and actionable.
  • Labels should clearly indicate what date is being selected
  • Error messages should explain why a date is invalid and how to fix it
  • Format hints should match the selected mode (mm/dd/yyyy or dd/mm/yyyy)
  • Descriptions should provide context without overwhelming the user

Keyboard Interaction

Users can navigate Date Field Single using standard keyboard controls.

Input Field

KeyDescription
TabMoves focus to the next element
Shift + TabMoves focus to the previous element
Arrow DownOpens the calendar picker when focused
EscCloses the calendar picker

Calendar Picker

KeyDescription
Arrow LeftMoves focus to the previous day
Arrow RightMoves focus to the next day
Arrow UpMoves focus to the same day in the previous week
Arrow DownMoves focus to the same day in the next week
Page UpMoves focus to the same day in the previous month
Page DownMoves focus to the same day in the next month
Shift + Page UpMoves focus to the same day in the previous year
Shift + Page DownMoves focus to the same day in the next year
EnterSelects the focused date
SpaceSelects the focused date
EscCloses the calendar picker

Accessibility

Date Field Single includes built-in accessibility features. The component supports full keyboard navigation and screen reader compatibility. Ensure labels are descriptive and error messages are clear for assistive technology users. For more guidance on form field labels and context, see input field context association best practices.
Last modified on January 23, 2026