Date Input

Lab component

Also known as

DateInputSingle, DateInputRange

DateInputSingle and DateInputRange provides an editable field where users can enter a single date or a date range. Currently all date based controls, need to be wrapped in a LocalizationProvider

Note: This tab list includes overflow; tab positions may be inaccurate or change when a tab is selected
Density
Mode

An uncontrolled DateInputSingle component allows users to select a single date without the need for explicit state management in the parent component. The component internally manages the date value, making it ideal for simple forms where the date input does not need to be programmatically controlled or monitored.

A controlled DateInputSingle component allows users to select a single date while the parent component explicitly manages the date value through state. This approach provides greater control over the date input, enabling validation, conditional rendering, and other dynamic behaviors based on the selected date.

A DateInputSingle component with a border provides a visually distinct input field for selecting a single date, enhancing the user interface by clearly delineating the date input area. This styling can improve usability and accessibility by making the input field more noticeable and easier to interact with.

Density
Mode

An uncontrolled DateInputRange component allows users to select a range of dates without the need for explicit state management in the parent component. The component internally manages the start and end date values, making it ideal for simple forms where the date range input does not need to be programmatically controlled or monitored.

A controlled DateInputRange component allows users to select a range of dates while the parent component explicitly manages the start and end date values through state. This approach provides greater control over the date range input, enabling validation, conditional rendering, and other dynamic behaviors based on the selected date range.

A DateInputRange component with a border provides a visually distinct input field for selecting a range of dates, enhancing the user interface by clearly delineating the date input area. This styling can improve usability and accessibility by making the input field more noticeable and easier to interact with.