Skip to content

Float Container

.c-float-container

TIP

The Float Container is a wrapper for new form elements like Input Fields, Textareas or Selects. It provides the "Floating Label" styling and can be combined with Buttons or Checkboxes. See Input Group for more complex examples.

Float Container Example

INFO

Float Container Hint

TIP

The hint text is optional and can be used to provide additional information about the input field.

.c-float-container + .c-float-container__hint or
.c-float-container > .c-float-container__hint

INFO

This is an optional hint.
This is an optional hint as child element.
This is an optional error hint.
This is an optional warning hint.
This is an optional success hint.

Validation Messages in Comparison

See Form for more information about form validation.

INFO

This is an optional hint.
This is an optional hint.
  • Dies ist ein Pflichtfeld.
Dies ist ein Pflichtfeld!
  • Bitte lesen und akzeptieren Sie unsere AGB und Datenschutzrichtlinien

  • Die Inhalte auf pharma4u richten sich ausschließlich an Heilberufler. Sie müssen den pharmazeutisch-medizinischen Fachkreisen angehören.

Settings and API

The Floating-Label functionality is handled in the Form-Module.

TIP

Initializes the Form Module with or without custom settings and registers Event-Listeners:
Form.init(settings: object);

Activate Float:
Form.activateFloat(element: Node);

Deactivate Float:
Form.deactivateFloat(element: Node);

Activate disabled button:
Form.activateInlineBtn(button: Node);