Foundation ComponentReact 18 & 19Zero Runtime CSS
Input
A familiar text field with all the capabilities of a native input.
Interactive preview
Usage
import { Input, Label } from "@devvy-ui/react";
<Label htmlFor="email">Email</Label>
<Input id="email" type="email" autoComplete="email" />API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| type | HTML input type | text | Native input mode. |
| disabled | boolean | false | Prevents interaction and form submission. |
| aria-invalid | boolean | — | Announces invalid state and applies an error border. |
Accessibility & behavior
Platform Behavior & Guidelines
Supply a visible Label. Connect help and error text with aria-describedby. Native size controls character width, not a visual size variant.
Source ownership
Add the audited implementation directly into your repository with the CLI:
node /path/to/devvy-ui/packages/cli/src/cli.mjs add inputMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
Input.tsxREACT / TSX
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.