shadcn.io is not affiliated with official shadcn/ui
Input Group examples · Text
URL Builder Input Group for React
A domain input between a fixed https:// prefix and a .com suffix.
Framework
UI library
A URL with fixed ends: https:// before the field and .com after it, both InputGroupText, so people type only the name in the middle.
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 prefix and suffix get their sides?
The prefix addon keeps the default inline-start and the suffix addon has align="inline-end". Both are written after the input.
How do I let people pick the protocol or the domain?
Put a menu in the addon, as in URL Builder with Dropdown.
Related
- Currency Input Input GroupDollar and euro amount inputs with the
- Email with Domain Input GroupA username input with a fixed @vercel.com
- URL Builder with Dropdown Input GroupTwo URL inputs, one with a protocol menu
- URL InputA website field with a link icon and a
- Input with LabelA text input with a label above it
- Simple Text Input FormA form with one username text input that