Sanity Library Reference Docs
    Preparing search index...

    Function Link

    • A component that creates an HTML anchor element.

      Parameters

      • props: LinkProps & HTMLProps<HTMLAnchorElement> & RefAttributes<HTMLAnchorElement>

        Props to pass to the Link component. See LinkProps

      Returns Element

      function MyComponent() {
      return (
      <Link href="https://www.sanity.io" target="_blank" replace>
      Go to Sanity
      </Link>
      )
      }