Title: ExternalLink
Published: March 9, 2021
Last modified: October 14, 2026

---

# ExternalLink

## In this article

 * [Usage](https://developer.wordpress.org/block-editor/reference-guides/components/external-link/?output_format=md#usage)
 * [Props](https://developer.wordpress.org/block-editor/reference-guides/components/external-link/?output_format=md#props)
    - [children: ReactNode](https://developer.wordpress.org/block-editor/reference-guides/components/external-link/?output_format=md#children-reactnode)
    - [href: string](https://developer.wordpress.org/block-editor/reference-guides/components/external-link/?output_format=md#href-string)

Link to an external resource.

## 󠀁[Usage](https://developer.wordpress.org/block-editor/reference-guides/components/external-link/?output_format=md#usage)󠁿

    ```language-jsx
    import { ExternalLink } from '@wordpress/components';

    const MyExternalLink = () => (
        <ExternalLink href="https://wordpress.org">WordPress.org</ExternalLink>
    );
    ```

## 󠀁[Props](https://developer.wordpress.org/block-editor/reference-guides/components/external-link/?output_format=md#props)󠁿

The component accepts the following props. Any other props will be passed through
to the `a`.

### 󠀁[children: ReactNode](https://developer.wordpress.org/block-editor/reference-guides/components/external-link/?output_format=md#children-reactnode)󠁿

The content to be displayed within the link.

 * Required: Yes

### 󠀁[href: string](https://developer.wordpress.org/block-editor/reference-guides/components/external-link/?output_format=md#href-string)󠁿

The URL of the external resource.

 * Required: Yes

First published

March 9, 2021

Last updated

October 14, 2026

Edit article

[ Improve it on GitHub: ExternalLink ](https://github.com/WordPress/gutenberg/edit/trunk/packages/components/src/external-link/README.md)

[  Previous: Elevation](https://developer.wordpress.org/block-editor/reference-guides/components/elevation/)

[  Next: FlexBlock](https://developer.wordpress.org/block-editor/reference-guides/components/flex-block/)