A link component in React.

Parameters:
NameTypeDescription
propsobject

Component props.

Properties
NameTypeDescription
childrenJSX.Element | null

React element children.

contentstring

Text content for the link.

customAttributesobject

Custom attributes for the component.

customClassesstring | Array | object

Custom classes for the component.

hrefstring

The href attribute for the link.

spacingstring | number | Array | object

The spacing for the component, as a string, number, array, or object.

targetstring

The target attribute for the link.

refobject | null

Ref to the component.

Since
  • 1.1.15
Returns:

The link component.

Type: 
JSX.Element
Example
import Link from '@gravityforms/components/react/admin/elements/Link';

return <Link href="https://path.to.link/" target="_blank">{ 'Click me' }</Link>;