TextLink API

API reference docs for theTextLinkcomponent. For examples and details on the usage of this component, visit the component demo page.

Props

PropTypeDescriptionDefault
as?React.ElementTypeHTML element to render'a'
childrenReact.ReactNodeThe content of the component._
href?stringThe URL to link to. See MDN for more information._
relstringThe relationship between the current document and the linked document. See MDN for more information._
target_self | _blank | _parent | _topWhere to display the linked document. See MDN for more information._self
variant?'accentPrimary' | 'neutralPrimary' | 'neutralSecondary' | 'regular'The variant of the TextLink.accentPrimary