Skip to main content
Version: 1.x

@microsoft/fast-foundation > Anchor

Anchor class

An Anchor Custom HTML Element. Based largely on the <a> element.

start - Content which can be provided before the anchor content

end - Content which can be provided after the anchor content

  • The default slot for anchor content

control - The anchor element

content - The element wrapping anchor content

Signature:
export declare class Anchor extends FoundationElement 

Properties

PropertyModifiersTypeDescription
controlHTMLAnchorElementReferences the root element
downloadstringPrompts the user to save the linked URL. See <a> element for more information.
hrefstringThe URL the hyperlink references. See <a> element for more information.
hreflangstringHints at the language of the referenced resource. See <a> element for more information.
pingstringSee <a> element for more information.
referrerpolicystringSee <a> element for more information.
relstringSee <a> element for more information.
target"_self" | "_blank" | "_parent" | "_top"See <a> element for more information.
typestringSee <a> element for more information.