Skip to main content
Version: 1.0.2

FieldGroup

Overview

The FieldGroup component is used inside forms to visually group related fields under a common title.
It improves structure, accessibility, and scannability of complex forms.


Preview

Personal Information

Installation

npx @mindfiredigital/ignix-ui add field-group

Variants

Personal Information

Usage Examples

Grouped Form Fields

<FieldGroup title="Login Details" border columns="auto">
<input type="email" placeholder="Email Address" />
<input type="password" placeholder="Password" />
</FieldGroup>

Without Border

<FieldGroup title="Preferences" border={false} columns="2">
<label><input type="checkbox" /> Receive Newsletter</label>
<label><input type="checkbox" /> Enable Dark Mode</label>
</FieldGroup>

Props

PropTypeDefaultDescription
titlestringnullTitle of the group, rendered inside a <legend>
columns"auto" | "1" | "2" | "3" ..."auto"Defines layout for fields (auto, fixed grid)
spacing"none" | "tight" | "normal" | "loose""normal"Controls spacing between fields
borderbooleantrueToggles fieldset border
childrenReactNodeForm fields inside the group