Skip to Content
DocsResourcesPricingShowcase

Link

Used to provide accessible navigation

SourceStorybookRecipe
Visit Chakra UI

import { Link } from "@chakra-ui/react"
<Link href="...">Click here</Link>

Use the variant prop to change the appearance of the Link component

Link (Underline)Link (Plain)

Use Link within a text to create a hyperlink

Visit the Chakra UI website

Add an external link icon to the Link component

Compose Link with Next.js Link component using the asChild prop

import { Link as ChakraLink } from "@chakra-ui/react"
import NextLink from "next/link"

const Demo = () => {
  return (
    <ChakraLink asChild>
      <NextLink href="/about">Click here</NextLink>
    </ChakraLink>
  )
}

PropDefaultType
colorPalette 'gray'
'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink' | 'accent'

The color palette of the component

variant 'plain'
'underline' | 'plain'

The variant of the component

Previous

Kbd

Next

Link Overlay