mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +00:00 
			
		
		
		
	 3c25033741
			
		
	
	3c25033741
	
	
	
		
			
			* chore: shared external link component, glimmerization * chore: update easy a tags * chore: update other a tags * chore: lil cleanup * changelog
		
			
				
	
	
		
			22 lines
		
	
	
		
			734 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			734 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import Component from '@glimmer/component';
 | |
| 
 | |
| /**
 | |
|  * @module ExternalLinkComponent
 | |
|  * `ExternalLink` components are used to render anchor links to non-cluster links. Automatically opens in a new tab with noopener noreferrer.
 | |
|  * To link to vaultproject.io, use DocLink. To link to learn.hashicorp.com, use LearnLink.
 | |
|  *
 | |
|  * @example
 | |
|  * ```js
 | |
|     <ExternalLink @href="https://hashicorp.com">Arbitrary Link</ExternalLink>
 | |
|  * ```
 | |
|  *
 | |
|  * @param href="https://example.com/"{String} - The full href with protocol
 | |
|  * @param sameTab=false {Boolean} - 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;
 | |
|   }
 | |
| }
 |