A branded link component in React.

Parameters:
NameTypeDescription
propsobject

Component props.

Properties
NameTypeDescription
customAttributesobject

Custom attributes for the component.

customClassesstring | Array | object

Custom classes for the component.

hrefstring

The href attribute for the link.

labelstring

The label for the link.

spacingstring | number | Array | object

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

SvgJSX.Element | null

The SVG element for the link.

targetstring

The target attribute for the link.

typestring

The type of branded link.

refobject | null

Ref to the component.

Since
  • 4.3.1
Returns:

The branded link component.

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

return <BrandedLink href="https://path.to.link/" target="_blank" label="Click me" type="color" />;