Reference Source
import {AnchorButton} from '@adobe/coral-spectrum'
public class | source


Expression Extends:

class AnchorButton extends BaseButton(BaseComponent(HTMLAnchorElement))

A Link component rendering as a button allowing us to style an anchor element that both looks and behaves like a button rather than a link. It can receive keyboard focus regardless of whether or not it has an href attribute, can be activated using either the SPACE key or the ENTER key, and is identified to assistive technology as a button element.



<a is="coral-anchorbutton"></a>
JS constructor
new Coral.AnchorButton();

Member Summary

Public Members

Disables the button from user interaction.

Public Members

public disabled: Boolean source

Disables the button from user interaction.

  • false by default.
  • reflected