Link

Links are used to apply styles to hyperlink text.

  • @primer/react@35.28.0
  • Alpha
  • Not reviewed for accessibility

Import

import {Link} from '@primer/react'

Examples

View in Storybook

Props

NameDefaultDescription
href
string

URL to be used for the Link. (The href is passed to the underlying <a> element. If as is specified, the link behavior may need different props).

muted
falseboolean

Uses a less prominent shade for Link color, and the default link shade on hover

underline
falseboolean

Adds underline to the Link

hoverColor
string

Color used when hovering over link

ref
React.RefObject<HTMLAnchorElement>
as
"a"React.ElementType
sx
SystemStyleObject