SourceCode
SourceCode renders a link to repository source code.
Usage
index.mdx
You can also place SourceCode on the same line as a heading. The source code link appears in the document heading and is excluded from the table of contents, without changing the heading anchor.
Props
href
- Type:
string - Required
The URL of the source code.
platform
- Type:
'github' | 'gitlab' - Default:
'github'
Switches the icon between GitHub and GitLab.