The Form Control component in the MIZ framework provides a flexible and customizable way to create various input fields, including text, email, password, textarea, file, color picker, and datalist. It supports different sizes, states, and layouts, making it suitable for a wide range of form designs.
Main wrapper for form controls. Controls layout and spacing.
.form-label
Label for input fields.
.form-control
Base class for all input, textarea, select, etc.
.form-text
Helper or description text below input.
Layout Variations
Form controls can be arranged in horizontal (.flex-row) or vertical (.flex-column) layouts. You can also combine multiple fields in a group, add helper text, or use different input types and sizes for a custom form experience.
Horizontal Layout: Use .flex-row for side-by-side fields
Vertical Layout: Use .flex-column for stacked fields
Grouped Fields: Nest multiple .form-field inside a parent for grouped forms
Helper Text: Add .form-text for descriptions or hints
Read-only/Disabled: Use readonly or disabled attributes for state control