@wordpress/components
Version:
UI components for WordPress.
30 lines (17 loc) • 505 B
Markdown
Link to an external resource.
```jsx
import { ExternalLink } from '@wordpress/components';
const MyExternalLink = () => (
<ExternalLink href="https://wordpress.org">WordPress.org</ExternalLink>
);
```
The component accepts the following props. Any other props will be passed through to the `a`.
The content to be displayed within the link.
- Required: Yes
The URL of the external resource.
- Required: Yes