That means it doesn't satisfy our definition of done and may be changed or even deleted. For an exact status, please reach out to the Fancy team through the dev_fancy or ux_fancy channels.
import{ DatePicker }from"@siteimprove/fancylab";
Components
Purpose
Usage guideline
Date Picker Component
Provide a highly customizable date picker that seamlessly integrates with the application's design and functionality.
Consider when customization, advanced features, specific user interactions, or complex data handling are crucial.
Date pickers simplify date input, making it especially useful for scheduling reports or filtering data. They offer a user-friendly alternative to manual text entry, reducing errors and ensuring consistent formatting.
The Date picker consists of:
Calendar view: A visual representation of a month or multiple months, allowing users to navigate and select a date.
Navigation controls: Arrows or buttons to move between months or years.
Siteimprove Design System: Adhere to Siteimprove's guidelines for color, typography, and spacing. If you are not using a component from Fancy, match the styling of your DatePicker to existing components for visual consistency.
Since the DatePicker doesn't have a built-in input field, always pair it with an Input field component to display the selected date and trigger the calendar view. Ensure a clear visual connection between the selected dates in the calendar and the Input Field's display for a seamless user experience.
Use the Form element wrapper component to restrict date selections and display clear error messages for invalid choices (e.g., future dates).
Date formats can be customized and often vary based on user location. To avoid confusion, select a single date format and use it consistently throughout your interface.