Lily's - Kit

Enhanced human interfaces
& user experiences

Powered by dead simple CSS props and a mix of common convention rules.

anchor article button details flex grid input label list slider table textarea

Label native

<label/> elements in web development provide a user-friendly way to associate descriptive text with form controls, such as input elements. By clicking on a label, users can focus on the corresponding input element, enhancing accessibility and usability. Labels ensure that forms are easily understandable and navigable.

<label>
  label
</label>

— parentElement PROPS

propdescriptionrequires
- - fieldchanges label behaviour to act as a field wrapper for form elements-
  <label data-props='--field'>
    <span>label</span>
    <input type="text"/>
  </label>

— childrenElement PROPS

propdescriptionrequires
- - labeldefines children as field label-
- - captiondefines children as field caption-
  <label data-props='--field'>
    <span data-props='--label'>label</span>
    <input type="text"/>
    <span data-props='--caption'>caption</span>
  </label>