Field

A label, a control and its help, wired together; an error shows under the control.

View source
New key

Applications use this key to call the gateway.

Shown in logs and the audit log.

import { Field, Fieldset } from "@logicplanes/kaeso-ui";

Props

  • description
    ReactNode

    One sentence of help under the label.

  • error
    ReactNode

    The error message, shown under the control in the danger color: it marks the field invalid and is read out with the description. After a failed submit, move focus to the first invalid field so its error is heard.

  • id
    string

    The id of the control inside, so the label points to it.

  • invalid
    boolean

    Marks the field invalid without a message.

  • label
    ReactNode

    The field's label.

  • required
    boolean = false

    Marks the field as required.