# LForm

# Props

# hide-errors

  • Type: boolean
  • Default: false

Indicates whether or not to hide the errors of the form components contained in said LForm. If true, no error will be rendered in the HTML, regardless of the value of the hide-errors prop of the form components contained inside the LForm.

# Events

# submit

  • Type: ((event: Event) => void) | undefined
  • Default: undefined

The form submission event when a button tag with the type="submit" attribute gets pressed (or when the user presses the Enter key). This event replaces the default submit event of the form tag. If no submit event gets passed to the LForm component, the default submit event will be triggered instead. Note that the submit event (whether or not passed to the LForm component) will only be executed if every form component inside the LForm has a valid value.

# Exposed Attributes

# valid

  • Type: boolean

Indicates whether or not the LForm is valid as a whole. It checks the validity of every form component inside itself.