Cal.comdesign-system

Input With Addon Text

InputGroup composition for bounded text prefixes and suffixes.

Use InputWithAddonText when the addon is predictable and should remain part of the input at every breakpoint: units (minutes, credits), currencies, and fixed domain suffixes such as .cal.com.

For a URL prefix whose length depends on deployment, organization, team, or username, use UrlInputWithAddon. It owns mobile hiding, the complete mobile preview, separator placement, and the no-addon fallback.

Props

Example

These examples map to shipped duration and organization-subdomain fields.

Cal.com · bounded addon patterns
minutes
.cal.com

Choosing the addon shape

Read the Input addons and URL fields guide before composing a new URL editor. Do not reproduce URL splitting with local length checks or breakpoint markup.

Call sites

Example URLs

Not exhaustive — a few places you can open locally (e.g. http://localhost:3000) to see this in product.

Source

packages/coss-ui/src/shared/input-with-addon-text.tsx