shadcn.io is an independent project built on shadcn/ui
People type the name in the middle. https:// is fixed text before the field, and .com is fixed text after it. Neither piece is part of the input's value. The placeholder is example.
Use it when the protocol and the ending never change. If either one is a choice, use a menu instead of fixed text. A free-form address is an Input. In Solid, Ark UI does not join the three parts into one URL.
Installation
Anatomy

Usage
<InputGroup class="w-full max-w-sm bg-background">
<InputGroupInput aria-label="Domain name" placeholder="example" type="text" />
<InputGroupAddon>
<InputGroupText>https://</InputGroupText>
</InputGroupAddon>
<InputGroupAddon align="inline-end">
<InputGroupText>.com</InputGroupText>
</InputGroupAddon>
</InputGroup>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.
API Reference
Input Group
Sets aria-label="Domain name", placeholder="example", type="text" and align="inline-end". The rest is on the Input Group page.





