Input
Text input with optional adornment slots. Extends the native input API — omits the numeric size attr and replaces it with a token-based size prop.
import { Input } from "@brijbyte/agentic-ui/input";
import "@brijbyte/agentic-ui/input.css";
export default function StatesDemo() {
return (
<div style={{ display: "flex", flexDirection: "column", gap: "var(--space-3)", width: 280 }}>
<Input disabled placeholder="Disabled" />
<Input invalid defaultValue="bad-value" />
</div>
);
}
Input
base-ui docs ↗Text input with optional left and right adornment slots. Extends the
native <input> API — replaces the numeric size attribute with a
token-based size prop.
| Prop | Type | Default |
|---|---|---|
| size | "sm" | "md" | "lg" | md |
Visual size. Maps to height + font-size design tokens. Default: | ||
| leftAdornment | ReactNode | — |
Icon or element rendered before the input text. | ||
| rightAdornment | ReactNode | — |
Icon or element rendered after the input text. | ||
| invalid | boolean | — |
Applies error styling and sets | ||
CSS Class Names
Available as keys on the InputStyles object. Each key maps to a hashed CSS module class name at runtime.
adornmentadornment-leftadornment-righthas-left-iconhas-right-iconinputWrapperrootsize-lgsize-mdsize-smwrapper