Anchor
Renders an "<a>"
tag. This component is usually used with the prop href
and with the anchor text as children
. Behind the scenes, this component implements target="_blank"
with rel="noreferrer noopener"
to aid security.
Usage
import { Anchor } from '@binarycapsule/ui-capsules';
Knobs 🎛
http://example.com
<Anchor href="http://example.com">
Go to example website
</Anchor>
Props
Name | Description |
---|---|
hrefRequired | string Contains a URL or a URL fragment that the hyperlink points to. |
childrenRequired | string The text of the anchor. |