shadcn.io is not affiliated with official shadcn/ui
Input Group examples · Spinner
Spinner with Text Input Group for React
A disabled input with Saving... and a spinner at its end.
Framework
UI library
Say what's happening, not just that something is: Saving... and a Spinner sit together at the end of a disabled field, in one inline-end addon.
Preview
Installation
Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.
FAQ
How do the text and the spinner share the end?
Both are children of one InputGroupAddon with align="inline-end", which spaces them with a gap.
How is the field disabled?
disabled on InputGroupInput. data-disabled="true" on InputGroup dims the addons.
Is Saving... announced?
Only if it's in a live region. Wrap the status in an element with role="status" to announce it when it appears.
Related
- Loading States Input GroupTwo disabled inputs, one with a spinner
- Animated Icon Spinner Input GroupA disabled input with a spinning loader
- Textarea Loading Input GroupA disabled textarea with a spinner under
- Character Counter Input Group (Text)A tweet input with a 280-character limit
- Button with Text (Standard)The one filled action
- Input with LabelA text input with a label above it