Logotype
JM Admin / Components / Horizontal labels
User

Horizontal labels Optional

Styles for text labels related to form elements.

Features
Configuration
  • Sass file: components/_horizontal-labels.scss
  • Include the Sass file in theme.scss: @use "components/horizontal-labels";
Implementation
  1. Use a wrapper element with class="horizontal-label".
  2. Place the <label> inside the wrapper element, followed by a paragraph (<p>) containing the input element.
  3. The label should have a for attribute (referencing the input element).

Examples

Text input:


Multiple text inputs with labels of different length:


Label with icon:

Text input with icon label:

Text input with icon label and icon link:

Text input with validation:

Select:

Textarea with icon label:

Tag list (advanced input box):

Multiple select (advanced input box):


Collapse

On small screens: The label is placed above the paragraph.


Alignment