Input URL (Deprecated)
ui:inputUrl
Deprecated as of API version 47.0. We recommend migrating to Lightning Web Components and using the lightning-input component.
For Use In
Lightning Experience, Experience Builder Sites, Salesforce Mobile App, Lightning Out (Beta), Standalone Lightning App
We recommend using Lightning Web Components whenever possible. When migrating to Lightning Web Components, use lightning-input with url type.
For more information, see Aura Components in the ui Namespace Are Deprecated.
A ui:inputURL component represents an input field for a URL, which is rendered as an HTML input tag of type url. To apply Lightning Design System styling, we recommend that you use lightning:input with type="url" instead of ui:inputURL.
This is a basic set up of a ui:inputURL component.
This example results in the following HTML.
To create forms for Salesforce objects without using Apex controllers, use lightning:inputField with lightning:recordEditForm, or use lightning:recordForm. To create an input field for different data types, use lightning:input.