TextInput
A theme-aware text input primitive. Supports controlled and uncontrolled usage, multiline (textarea), error and disabled states, and all standard form attributes.
Focus
The root uses :focus-within to detect keyboard focus on the native element and switches border-color to theme.palette[color].main. No JavaScript state is needed.