LoadingInput
Holds an input's place while its data loads: a disabled input with a spinner that appears after a short delay.
Installation
pnpm dlx shadcn@latest add @chelone/loading-inputHolds an input's place while its data loads: a disabled input with a spinner that appears after a short delay.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| fullWidth | boolean | — | |
| helperText | ReactNode | — | |
| label | ReactNode | — | |
| size | "default" | "sm" | — | |
| timeout | number | — | Milliseconds before the spinner replaces the empty placeholder. Defaults to 1000. |