mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
* move script to scripts folder * add docfy to router and scripts * add docfy to router and scripts * fix jsdoc syntax * add component markdown files to gitignore * improve error handling for scripts * tidy up remaining jsdoc syntax * add sample jsdoc components * add known issue info * make not using multi-line components clearer * make generating docs clearer * update copy * final how to docfy cleanup * fix ts file @module syntax * fix read more syntax * make docfy typescript compatible
28 lines
876 B
JavaScript
28 lines
876 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Component from '@glimmer/component';
|
|
|
|
/**
|
|
* @deprecated
|
|
* @module ExternalLink
|
|
* ExternalLink components are used to render anchor links to non-cluster links. Automatically opens in a new tab with noopener noreferrer.
|
|
*
|
|
* @example
|
|
* <ExternalLink @href="https://hashicorp.com">Arbitrary Link</ExternalLink>
|
|
*
|
|
* * Use HDS links with @isHrefExternal={{true}} instead
|
|
* <Hds::Link::Inline @icon="external-link" @isHrefExternal={{true}} @href="https://hashicorp.com">My link</Hds::Link::Inline>
|
|
*
|
|
* @param {string} href - The full href with protocol
|
|
* @param {boolean} [sameTab=false] - by default, these links open in new tab. To override, pass @sameTab={{true}}
|
|
*
|
|
*/
|
|
export default class ExternalLinkComponent extends Component {
|
|
get href() {
|
|
return this.args.href;
|
|
}
|
|
}
|