Skip to content
Brok UI

Loading…

No results

Lint UI-401

no-invalid-variant

A variant or size prop must use one of the values the component defines.

UI-401 default: error api INVALID_VARIANT

Configure

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

ui.json JSON
"no-invalid-variant": ["error", { "message": "...", "exclude": ["resources/views/legacy/**"] }]
terminal
php artisan ui:check --explain no-invalid-variant

Suppress one line

blade
{{-- ui-lint-disable-next-line no-invalid-variant: reason --}}