Input Group

Groups a native input, label, and validation message.

Component Code
<april:input-group name="email" id="email" type="email" label="Email address" placeholder="you@example.com" />

Use input-group when a form control needs a label and Laravel validation errors in one unit. The group reads the field name from name and uses the matching error key by default.

<april:input-group
name="email"
id="email"
type="email"
label="Email address"
placeholder="you@example.com"
required
/>

Pass error-name or error-bag when the validation key differs. Use inline for compact controls such as checkboxes, radios, and range inputs. Add prevent-errors when the group should not render validation output.

Publishing Views

Use the following command to publish this view:

php artisan april:publish input-group
April UI keeps package views in `vendor/` by default. The command uses Laravel's vendor publishing system and copies overrides to `resources/views/vendor/april/components`. To publish all components, run:
php artisan april:publish --all
Review local overrides after an upgrade with `php artisan april:update --diff`.