Input

@sushindustries/ui

A text input, and only the drawing of one - state and labels belong to the form and to Field.

4 min read
View as MarkdownEdit on GitHub

Props

Accepts every prop of InputHTMLAttributes<HTMLInputElement>.

Notes

There is no prop surface beyond the native one - no tone, no invalid, no size. Validation styling comes from an ancestor FieldFieldA labelled control with one line under it - the error is announced by being pointed at, not by being red.@sushindustries/ui · content writing data-invalid, and className is appended after field-control rather than replacing it, so a class passed in adds to the control's style instead of overriding it outright.