Skip to content
Brok UI

Loading…

No results

Lint UI-103

require-field-wrapper

Form controls belong inside <brok:field>, which wires label, description, and error.

UI-103 default: warning adoption MISSING_FIELD_WRAPPER

Configure

In the lint.rules block of ui.json. It accepts message, exclude; see the policy for what the entries match.

ui.json JSON
"require-field-wrapper": ["warning", { "message": "...", "exclude": ["resources/views/legacy/**"] }]
terminal
php artisan ui:check --explain require-field-wrapper

Suppress one line

blade
{{-- ui-lint-disable-next-line require-field-wrapper: reason --}}