> For the complete documentation index, see [llms.txt](https://docs.hivepress.io/developer-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivepress.io/developer-docs/framework/fields/url.md).

# URL

This field type renders a URL field.

### Parameters

Parameters are inherited from the [Text](/developer-docs/framework/fields/text.md) field type, but only URLs are allowed.

### Example

The code below renders a URL field with the `custom_field` name, "Custom field" label and "Custom text" placeholder. This field requires a non-empty value.

```php
echo ( new HivePress\Fields\URL(
	[
		'name'        => 'custom_field',
		'label'       => 'Custom field',
		'placeholder' => 'Custom text',
		'required'    => true,
	]
) )->render();
```
