Logotype
JM Admin / Components / Overlay labels
User

Overlay labels Optional

Styles for text labels related to form elements.

Features
Configuration
  • Sass file: components/_overlay-labels.scss
  • Include the Sass file in theme.scss: @use "components/overlay-labels";
Implementation
  1. Use a wrapper element with class="overlay-label".
  2. Input elements must have a placeholder attribute (space or text). The placeholder text will be hidden, but is needed for toggling state.
  3. Put the label text in a <span> tag as a sibling node after the input element.

Examples

Text input:

Label

Text input with value:

Label

Text input with icon label:

Text input with icon label and icon link:

Text input with validation:

Label

Select:

Label

Textarea with icon label:

Tag list (advanced input box):

Multiple select (advanced input box):