Anex UI logoAnex UI
npm install anexui
Documentation

Documentation

Input

A text input field with error state support and full ARIA wiring.

Preview

Usage

import { Input } from "anexui";

<Input placeholder="Enter your email" />
Copy code

Error state

<Input error placeholder="Invalid value" aria-describedby="err" />
<p id="err">This field is required.</p>
Copy code

With label

import { Label, Input } from "anexui";

<Label htmlFor="name">Name</Label>
<Input id="name" placeholder="Debayan Sen" />
Copy code

Input types

<Input type="text" placeholder="Text" />
<Input type="email" placeholder="you@example.com" />
<Input type="password" placeholder="••••••••" />
<Input type="number" placeholder="42" />
<Input type="search" placeholder="Search…" />
Copy code

Disabled

<Input disabled value="Read only value" />
Copy code

Props

| Prop | Type | Default | Description | |---|---|---|---| | error | boolean | false | Sets aria-invalid, applies error border/ring | | disabled | boolean | false | Disables the input | | placeholder | string | — | Placeholder text | | type | string | "text" | HTML input type |

All standard HTML <input> attributes are accepted.

Accessibility