File size: 1,015 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# External Link

## ExternalLink

External Link is a React component for rendering an external link.

### Usage

```jsx
import { ExternalLink } from '@automattic/components';

function MyComponent() {
	return (
		<ExternalLink icon href="https://wordpress.org" onClick={ () => {} }>
			WordPress.org
		</ExternalLink>
	);
}
```

### Props

The following props can be passed to the External Link component:

| property      | type    | required | comment                                                                        |
| ------------- | ------- | -------- | ------------------------------------------------------------------------------ |
| `icon`        | Boolean | no       | Set to true if you want to render a nice external Gridicon at the end of link. |
| `localizeUrl` | Boolean | no       | Set to false if you want to render a link that is not localized.               |

### Other Props

Any other props that you pass into the `a` tag will be rendered as expected.
For example `onClick` and `href`.