Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit bbd390a

Browse files
committed
feat(Link): Let external prop control window target
1 parent b39be44 commit bbd390a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/text/Link.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const Link = (props: LinkProps) => {
3838
<BaseLink
3939
href={props.href}
4040
onClick={props.onClick}
41+
target={props.external !== undefined ? '_blank' : '_self'}
4142
>
4243
{props.children}
4344
{props.external !== undefined ? <IconExternalLink /> : null}

0 commit comments

Comments
 (0)