EEnterUI
DocsComponentsThemesDonation
Get Started
      • CurrencyInput
      • MaskedInput
      • URLInput
EnterUIDocsInputsForm ControlsSpecialized InputsURLInput
InputsUpdated 6 May 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

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

PreviousMaskedInput
NextCheckbox

On this page

  1. Default usage
  2. Import
  3. Controlled
  4. Patterns
  5. Accessibility
  6. API
  7. Styling