Input
Atombeta@macaw-ds/ui · since 0.1.0Single-line text entry: names, emails, references, amounts. Not for multi-line text, dates or selections.
The text field primitive. Labelled by contract (TypeScript requires an id for a visible label, or aria-label / aria-labelledby), with adornments for currency symbols and units, an `invalid` state wired to aria-invalid, and `align="end"` for money. Formatting of money and numbers belongs to the consumer until the NumberField ships.
Playground
Controls are generated from the manifest; the snippet is what the CLI prints. Show focus and Reduced motion appear only when they apply.
What moves: Border colour eases on hover. Hover transitions are 100 ms, so the difference is subtle by design.
import { Input } from '@macaw-ds/ui';
<Input />
Examples
The named exports of the examples file, rendered as they ship.
- Default
- Amount
Charged on the 1st of each month.
- Invalid
Enter a full email address, like finance@acme.com.
- Search
- Sizes
- States