@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
Property | Modifiers | Type | Description |
---|---|---|---|
control | HTMLAnchorElement | References the root element | |
download | string | Prompts the user to save the linked URL. See <a> element for more information. | |
href | string | The URL the hyperlink references. See <a> element for more information. | |
hreflang | string | Hints at the language of the referenced resource. See <a> element for more information. | |
ping | string | See <a> element for more information. | |
referrerpolicy | string | See <a> element for more information. | |
rel | string | See <a> element for more information. | |
target | "_self" | "_blank" | "_parent" | "_top" | See <a> element for more information. | |
type | string | See <a> element for more information. |