EnterUI
DocsComponentsThemesExamplesDonation
Get Started
      • CurrencyInput
      • MaskedInput
      • URLInput

Default usage

  1. EnterUI
  2. /Docs
  3. /Inputs
  4. /Form Controls
  5. /Specialized Inputs
  6. /URLInput
Updated 13 October 2026

URLInput

URL field with protocol selection and normalized value output.

URLInput separates protocol choice from the address body so forms can guide users toward allowed protocols without custom string helpers.

#Default usage

Website URL

Default protocol is applied while the user enters the host.

Code
<URLInput aria-label="Website" placeholder="example.com" />

#Import

Code
import { URLInput } from "@froggdesign/enter-ui-react";

#Controlled

Code
<URLInput
  value={url}
  onValueChange={setUrl}
  allowedProtocols={["https", "http"]}
  defaultProtocol="https"
/>

#Patterns

Use URLInput for webhook endpoints, website fields, callback URLs, docs links, and integration settings.

#Accessibility

The protocol selector has an explicit label and the text input keeps the consumer-provided label. Use invalid with field-level error text for unsupported or unreachable URLs.

#API

  • allowedProtocols: protocol list. Defaults to ["https", "http"].
  • defaultProtocol: protocol used when the value has no protocol.
  • value, defaultValue: full URL string.
  • onValueChange: called with the normalized full URL.
  • invalid: marks the text input invalid.

#Styling

The combined protocol and URL field uses the shared medium (8px) control radius.

URLInput uses .eui-url-input classes and FroggDesign tokens for layout, state, focus, and disabled styling.

PreviousMaskedInput
NextSelect
On this page
  • Default usage
  • Import
  • Controlled
  • Patterns
  • Accessibility
  • API
  • Styling