TextLink API
API reference docs for theTextLink
component. For examples and details on the usage of this component, visit the component demo page.
Props
Prop | Type | Description | Default |
---|---|---|---|
as? | React.ElementType | HTML element to render | 'a' |
children | React.ReactNode | The content of the component. | _ |
href? | string | The URL to link to. See MDN for more information. | _ |
rel | string | The relationship between the current document and the linked document. See MDN for more information. | _ |
target | _self | _blank | _parent | _top | Where to display the linked document. See MDN for more information. | _self |
variant? | 'accentPrimary' | 'neutralPrimary' | 'neutralSecondary' | 'regular' | The variant of the TextLink. | accentPrimary |