Anchor

Anchor description.


Props

Anchor properties

PropertyDescriptionTypeDefaultVersion
hrefLink URLstring-
externalOpen link in new tab?booleanfalse
underlineShould links be underlined?booleantrue
variantWhat variant of link should be rendered?primary, secondaryprimary

Usage

Basic Anchor

Variant

No Underline

Links are underlined by default, but underlines can be removed where necessary

Adding the external prop opens links in a new tab

Multiple Lines

Links can span multiple lines too

Security

For an external link we add rel='noopener noreferrer'

Examples