Page actions
Copy a page as Markdown, or open it in GitHub and AI tools.
Installation
Usage
Both actions need a route that serves the page's Markdown. With Fumadocs MDX, enable includeProcessedMarkdown and add a route as in the Fumadocs docs. Then add the actions to your page:
| Component | Props | Description |
|---|---|---|
MarkdownCopyButton | markdownUrl | Copies the page's Markdown to the clipboard. |
ViewOptionsPopover | markdownUrl?, githubUrl?, pageUrl? | A popover with links to the source on GitHub, the Markdown, and ChatGPT, Claude, Cursor and Scira with a prompt about the page. |
Both are built on shadcn/ui button and popover, and are also exported from components/docs/layouts/shared/page-actions.