Skip to content
Brok UI

Loading…

No results

Lint UI-407

no-invalid-component-api

A prop, slot, or child must match the component's published API.

UI-407 default: error api INVALID_COMPONENT_API

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-component-api": ["error", { "message": "...", "exclude": ["resources/views/legacy/**"] }]
terminal
php artisan ui:check --explain no-invalid-component-api

Suppress one line

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