no-native-input
Native <input> should use an Input component preset.
| Severity | Dimension | Files |
|---|---|---|
| Info | Adoption of presets | .tsx .jsx |
What it flags
A line like this:
is reported as:
Native element — consider using the Input component
How to fix it
Import Input from your component library.
preset AI suggests a fix it can apply for you: Consider using Input component. The design system Input component provides consistent styling, focus states, and error handling.
Before:
After:
Related
- All rules: every built-in rule, by dimension.
- Set up enforcement: connect an AI tool and make validation required.
Last reviewed by @jschuyler