GitProvider
Examples
Icon
View SourceText
View Sourceexport function Text() { return <GitProviderLink>View Source</GitProviderLink> }
Custom
View Sourceexport function Custom() { return ( <GitProviderLink style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }} > <GitProviderLogo width="1em" height="1em" /> <span>View Source</span> </GitProviderLink> ) }
API Reference
GitProviderLogo
({ fill, ...props }: React.SVGProps<SVGSVGElement>) => React.JSX.Element | undefined
Renders a logo for the configured Git provider.
Returns
Element | undefinedGitProviderLink
({ css: cssProp, className, style, children, }: { css?: CSSObject; className?: string; style?: React.CSSProperties; children?: React.ReactNode; }) => React.JSX.Element
A link to the configured Git provider source code repository.
Parameters
Properties
css
CSSObject | undefined
className
string | undefined
style
React.CSSProperties | undefined
children
React.ReactNode
Returns
ElementLast updated