ButtonLink API

API reference docs for theButtonLinkcomponent. For examples and details on the usage of this component, visit the component demo page.

Props

PropTypeDescriptionDefault
hrefstringSet the hyperlink url._
variant?'accentPrimary' | 'accentSecondary'| 'criticalPrimary'| 'criticalTertiary'| 'neutralPrimary'| 'neutralSecondary'| 'neutralSecondaryIntense'| 'neutralTertiary'Variant of the button.'accentPrimary'
size?'large' | 'standard' | 'small'Size of the button.'standard'
iconStart?IconThe icon to display before the buttons children._
iconEnd?IconThe icon to display after the buttons children._
children?ReactNodeThe content to be displayed inside the link._
onBlur?functionFunction to call when the link loses focus._
onFocus?functionFunction to call when the link receives focus._
rel?stringSpecifies the relationship between the current document and the linked document/resource._
target?'_self' | '_blank' | '_parent' | '_top'Specifies where to open the linked document._