fieldSlot

A field slot is a node meant to hold an input node along with associated nodes, like labels. It's functionally equivalent to the `<label>` element in HTML.

Fields expand the interactable (clickable) area of input nodes by other nodes that are placed inside the slot. For example, in the code snippet below, if the user clicks on the "username" label, the text input underneath will gain focus.

fieldSlot!vframe(
    label("Username"),
    textInput(),
)
@safe
alias fieldSlot(alias node) = simpleConstructor!(FieldSlot, node)

Meta