diff --git a/snippets/_includes/github-source-link.mdx b/snippets/_includes/github-source-link.mdx index 866aaec570..21eea76ad0 100644 --- a/snippets/_includes/github-source-link.mdx +++ b/snippets/_includes/github-source-link.mdx @@ -1,10 +1,14 @@ -export const GitHubLink = ({ url }) => ( +export const GitHubLink = ({ url, compact = false }) => ( + {compact ? ( + "View source" + ) : ( + <> ( GitHub source + + )} -); +); \ No newline at end of file