Skip to content

BaseInputDatePicker

View source on GitHub

A component that combines a text input and a date picker modal for selecting and displaying dates. *

Props

NameTypeRequiredDescription
labelstringnoThe label for the input field.
titlestringnoThe title for the date picker modal.
idstringnoThe id for the input field.
valuestringnoThe selected date value.
invalidInputbooleannoFlag to indicate if the input is invalid.
colorstringnoThe color context for styling (e.g., "plant", "distillation").

Exposed Methods

changeVisibility()

Toggles the visibility of the date picker modal.

closeModal()

Closes the date picker modal.

updateDate()

Updates the date value when a new date is selected.

Parameters:

  • selectedDate (string): The selected date string.