Form Group

Material Design 3 form layout utilities including labels, helper text, and fieldsets

Form Group

Form Group provides layout utilities for organizing form elements with labels, helper text, and fieldsets. It creates consistent spacing and alignment across your forms.

Basic Usage

Basic Form Group

Labels

Basic Label

Form Label

Required Label

Required Label

Optional Label

Optional Label

Label Sizes

Label Sizes

Helper Text

Basic Helper Text

Helper Text

Must be at least 8 characters

Error Helper Text

Error Helper Text

Password is too short

Success Helper Text

Success Helper Text

Username is available

Warning Helper Text

Warning Helper Text

This name might be mistaken for a system account

Helper Text with Icon

Helper Text with Icon

We'll never share your email with anyone

Character Counter

Character Counter

Brief description for your profile 0/150

Fieldset

Basic Fieldset

Basic Fieldset

Personal Information

Fieldset with Description

Fieldset with Description

Account Settings

Configure your account preferences

Bordered Fieldset

Bordered Fieldset

Shipping Address

Form Layouts

Vertical Layout (Default)

Vertical Layout

Horizontal Layout

Horizontal Layout

Inline Layout

Inline Layout

Form Row

Form Row

Three Column Row

Three Column Row

Complete Form Example

Complete Form

Create Account

Fill in your details to create a new account

We'll send a verification link to this email
Must be at least 8 characters with a number

API Reference

Class Names

ClassDescription
.form-groupForm field container (required)
.form-labelLabel element
.form-label-requiredRequired field indicator
.form-label-optionalOptional field text
.form-label-smSmall label
.form-label-lgLarge label
.helper-textHelper text below field
.helper-text-errorError helper text
.helper-text-successSuccess helper text
.helper-text-warningWarning helper text
.helper-text-iconHelper text with icon
.helper-text-rowRow for helper + counter
.character-counterCharacter count display
.fieldsetFieldset container
.fieldset-legendFieldset legend/title
.fieldset-descriptionFieldset description
.fieldset-borderedBordered fieldset variant
.formForm container
.form-verticalVertical form layout
.form-horizontalHorizontal form layout
.form-inlineInline form layout
.form-rowRow for multiple fields
.form-group-halfHalf-width field
.form-group-thirdThird-width field
.form-group-errorError state group
.form-group-successSuccess state group
.form-group-warningWarning state group
.form-actionsForm action buttons container