Input
Input(
__namedParameters):Element
Defined in: packages/react/src/components/ui/input.tsx:28
Single-line text input with optional in-input loading spinner.
When loading is true, a spinner renders absolutely positioned on the
right edge and the input gains right padding (pr-9). The default path
(no loading prop) is unchanged — a bare <input> element with no wrapper.
loading is mutually visible with any other right-side adornment;
consumers should not stack right adornments and loading simultaneously.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”object & ClassAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLInputElement>
Returns
Section titled “Returns”Element
Example
Section titled “Example”<Input value={query} onChange={(e) => setQuery(e.target.value)} loading={isPending} placeholder="Search…"/>