Skip to content

PlantData

View source on GitHub

This component renders inputs and manages data related to plant material used in distillation, including weight, state, and drying/age information. *

Props

NameTypeRequiredDescription
isFormValidbooleanyesIndicates if the form is valid.
isResettingbooleannoIndicates if the form is being reset.
isEditingbooleannoIndicates if the form is in editing mode.
wasSubmittedbooleanyesIndicates if the form was submitted.

Exposed Methods

handleKeyboard()

Handles keyboard events for integer-only input and prevents minus sign.

Parameters:

  • e (KeyboardEvent): The keyboard event.