A layout utility element for grouping and organizing form fields. Supports vertical (stacked) and horizontal (inline) orientations.
Installation
npm install @duskmoon-dev/el-form-group
Usage
import { register } from '@duskmoon-dev/el-form-group';
register();
<el-dm-form-group>
<el-dm-input label="First Name"></el-dm-input>
<el-dm-input label="Last Name"></el-dm-input>
</el-dm-form-group>
Live Demo
Properties
| Property | Type | Default | Description |
|---|
orientation | 'vertical' | 'horizontal' | 'vertical' | Layout direction of child fields |
Slots
| Slot | Description |
|---|
| Default | Form field elements to group |