GitHub
ComponentsLink

Link

A React component for displaying an hyperlink. Link’s can be nested inside a Text component, or being inside any other valid primitive.

import { Text, Link } from '@react-pdf/renderer';

const Footer = () => (
  <Text style={{ fontSize: 10 }}>
    Built with <Link src="https://react-pdf.org">react-pdf</Link>
  </Text>
);
Show preview

Valid props

Prop nameDescriptionTypeDefault
srcValid URL or destination ID. ID must be prefixed with #. See moreStringundefined
hrefAlias of src. Valid URL for external linksStringundefined
wrapEnable/disable page wrapping for element. See moreBooleantrue
styleDefines view styles. See moreObject, Arrayundefined
debugEnables debug mode on view bounding box. See moreBooleanfalse
fixedRender component in all wrapped pages. See moreBooleanfalse
hitSlopExpands the clickable area beyond the visible bounds of the linkNumber or Object { top, bottom, left, right }undefined
bookmarkAttach bookmark to element. See moreString or Bookmarkundefined

On this page