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
Validation Messages in Comparison
See Form for more information about form validation.
INFO
- Dies ist ein Pflichtfeld.
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);