Skip to main content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Components

Memorable date

use: deployed English, Spanish USWDS v3 Web
Three text fields are the easiest way for users to enter most dates.

Examples

Default

View va-memorable-date in Storybook

Month select

View va-memorable-date with month select in Storybook

Extra hint text

View va-memorable-date with extra hint text in Storybook

Custom validation

View va-memorable-date with custom validation in Storybook

Forms pattern single default

View va-memorable-date forms pattern single default in Storybook

Forms pattern multiple

View va-memorable-date forms pattern multiple in Storybook

Error

View va-memorable-date error in Storybook

Error with month select

View va-memorable-date error with month select in Storybook

Forms pattern single error

View va-memorable-date forms pattern single error in Storybook

Forms pattern multiple error

View va-memorable-date forms pattern multiple error in Storybook

Internationalization

View va-memorable-date internationalization in Storybook

Usage

Choosing between variations

  • Unlike the USWDS, the default component uses a text input instead of a select input for the month. This was done after user testing showed inconsistencies between field types led to challenges for users of assistive technology. Teams should note the maturity of this component and proceed with caution.

Errors

  • Refer to the specific error examples above.

Hint text

  • During workflows where dates of life events, periods of service, and more, come in heavy multiples, the default hint text can be hidden using the remove-date-hint attribute.
  • For adding extra hint text, refer to the hint text example above.

Code usage

Web

Attributes and Properties

Property Attribute Type Default Description customDayErrorMessage custom-day-error-message string

A custom error message to display if the day is invalid

customMonthErrorMessage custom-month-error-message string

A custom error message to display if the month is invalid

customYearErrorMessage custom-year-error-message string

A custom error message to display if the year is invalid

enableAnalytics enable-analytics boolean false

Whether or not an analytics event will be fired.

error error string

The error message to render (if any) This prop should be leveraged to display any custom validations needed for this component

externalValidation external-validation boolean false

Set this flag to true if component will recieve external validation that might conflict with internal validation due to race conditions, i.e. if both internal and external validation will be set in response to same user input.

formHeading form-heading string

The content of the heading if useFormsPattern.

formHeadingLevel form-heading-level number 3

The heading level for the heading if useFormsPattern.

headerAriaDescribedby header-aria-describedby string

An optional message that will be read by screen readers when the header is focused. The label-header-level prop must be set for this to be active.

hint hint string

Hint text string

invalidDay invalid-day boolean false invalidMonth invalid-month boolean false invalidYear invalid-year boolean false label label string

Label for the field.

labelHeaderLevel label-header-level string

Insert a header with defined level inside the label (legend)

monthSelect month-select boolean false

Whether or not to use the month as an input or select.

name name string

Used to create unique name attributes for each input.

removeDateHint remove-date-hint boolean false

Removes the default date hint text

required required boolean false

Render marker indicating field is required.

useFormsPattern use-forms-pattern string

Enabling this will add a heading and description for integrating into the forms pattern. Accepts single or multiple to indicate if the form is a single input or will have multiple inputs.

value value string

Set the default date value must be in YYYY-MM-DD format.

Events

Name Description component-library-analytics The event used to track usage of the component. This is emitted when an input value changes and enableAnalytics is true. dateBlur Fires when the date input loses focus dateChange Fires when the date input loses focus after its value was changed

Accessibility considerations

Component checklist

Web Platform

80%

8 of 10 complete

Maturity

Guidance

Web

Examples, usage, code usage, content considerations, and accessibility considerations are all complete.

Research

Web

VFS team conducted research on this component which is linked from this page.

Stability

Web

Component has been in production for more than 3 months with no significant issues found.

Adoption

Web

Multiple teams have adopted this component.
Note: This component was introduced in August 2022.

Accessibility

While this component has been previously tested against older criteria, it has not yet been audited with the updated testing criteria.

Code assets

Variations

Web

Storybook includes all variations (style, size, orientation, optional iconography, selection, error state, etc.)

Responsive

Web

Component depicted in all responsive breakpoints.

Interactive states

Web

Includes all interactive states that are applicable (hover, active, focus, keyboard focus, disabled).

Tokens

N/A Web

All design attributes (color, typography, layout, etc.) are available as tokens.

Internationalization

N/A Web

Describes i18n attributes.

Visual assets

Variations

Web

Figma library includes all variations (style, size, orientation, optional iconography, selection, error state, etc.)

Responsive

Web

Component designed to work in all responsive breakpoints.

Interactive states

Web

Includes all interactive states that are applicable (hover, active, focus, keyboard focus, disabled).

Tokens

N/A Web

All design attributes (color, typography, layout, etc.) are available as tokens.

Legend:

  • Complete
  • Incomplete
  • N/A Not applicable

Provide feedback

Share your feedback, report issues, or suggest improvements for the Memorable date component. Your input helps us make the design system better for everyone.

Edit this page in GitHub (Permissions required)
Last updated: Sep 11, 2025