Skip to main content
Hyperlinks to external URLs or internal document locations.

Props

PropTypeDescription
hrefstringURL or anchor reference
childrenReactNodeLink text
classNamestringTailwind classes

Supported protocols: http://, https://, mailto:, ftp://.
Use # to link to bookmarks within the document:

Styling


Bookmark

Create anchor points that internal links can target.

Bookmark props

PropTypeDescription
namestringAnchor identifier (used with #name)
childrenReactNodeContent to wrap

Headings as anchors

Headings with id prop automatically create bookmarks:
This is equivalent to:

Common patterns

References