Anchor
The <Anchor> component creates direct links to specific content like paragraphs, tables, and code blocks. Use anchors when you need to reference non-heading content that doesn’t automatically generate its own link.
Headings automatically generate anchor links based on their text content, so you don’t need to use the anchor component for headings.
Usage
Wrap your content with the <Anchor> tag and assign it a custom anchor ID, which you can link to in URLs using the hash symbol (example: https://website.com/page#data).
This sentence has a custom anchor named #data. You can access it via this URL: https://buildwithfern.com/learn/docs/writing-content/components/anchor#data.
Variants
Anchor a table
You can link directly to the API endpoints table.
Anchor a code block
Reference the watering code example in your implementation.
Properties
The anchor ID for this content. Reference it in URLs using the hash (example: #data)