Link

Use the link components for when your link is outside a paragraph. Links may be isolated, stacked vertically in a list. Links should navigate you to a new page, internally or externally, back or to further information.

Import

Standalone Link

Loading preview
Open in Storybook

Link With Custom Icon

Loading preview
Open in Storybook

Back Link

Loading preview
Open in Storybook

Back Link With Custom Icon

Loading preview
Open in Storybook

Links List

Loading preview
Open in Storybook

Link Out

Loading preview
Open in Storybook

Props

Link Props

Links List Props

Back Link Props

Link Out Props

NameDescriptionDefault
children

Link text

ReactNode
-
asChild

Component will delegate outermost React element to use first element passed within children

boolean
-
isInline

If true, anchor is an inline link

boolean
-
onClick

The event handler for click events on anchor

MouseEventHandler<HTMLAnchorElement>
-
aria-describedby

ID of element providing further context and description of the link

string
-
icon

Custom icon to be displayed instead of the link icon

ReactElement<any, string | JSXElementConstructor<any>>
-
href

The URL that the hyperlink points to.

string
-
reactlytics
ReactlyticsProp
-

Questions?

Connect with the DLS Team on Slack or by email.

Resources

Check out additional resources.