Link

Display a link to an external resource, a bookmarklet or a download.

Example

{
  type: "link",
  label: "Link",
  value: {
    href: "https://www.takeymakey.com/",
    text: "takeymakey.com",
  },
}

Options

Output

Use these options when using the field with make.

label?
string |‌ false
A label describing the purpose of the field. Setting the label to false removes the element, which can be useful when nested as the only child within a group.
detail?
string
Additional information about the field, disclosed in a tooltip.
value?
{href: string, text?: string}
An object defining the destination href attribute and inner text of the link. When text is not defined, the href is shown as the link text. If the value of the href attribute is not a valid URL, it will be ignored. When using the "javascript:" protocol, the link is loaded in a secure sandbox.
download?
boolean |‌ string
When true, download the link rather than navigating. Use a string to provide a default name for the downloaded file.