ButtonLink API

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

Props

Prop

Type

Description

Default

href

string

Set 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?

Icon

The icon to display before the buttons children.

_

iconEnd?

Icon

The icon to display after the buttons children.

_

children?

ReactNode

The content to be displayed inside the link.

_

onBlur?

function

Function to call when the link loses focus.

_

onFocus?

function

Function to call when the link receives focus.

_

rel?

string

Specifies the relationship between the current document and the linked document/resource.

_

target?

'_self' | '_blank' | '_parent' | '_top'

Specifies where to open the linked document.

_