Skip to content

Link Button

Wrap a link in linkbutton markers to render it as a styled button. On GitHub it’s a plain link. In Starlight it’s a button with variant coloring.

Get Started
View Markdown source
/linkbutton
<!-- linkbutton -->
[Get Started](/components/)
Primary Secondary Minimal
View Markdown source
/linkbutton
<!-- linkbutton variant:primary -->
[Primary](/components/)
<!-- linkbutton variant:secondary -->
[Secondary](/components/)
<!-- /linkbutton -->
<!-- linkbutton variant:minimal -->
[Minimal](/components/)
<!-- /linkbutton -->
Get Started View on GitHub
View Markdown source
/linkbutton
<!-- linkbutton variant:primary icon:right-arrow -->
[Get Started](/components/)
<!-- linkbutton variant:secondary icon:external icon-placement:start -->
[View on GitHub](https://github.com/claylo/rehype-gfm-components)
<!-- /linkbutton -->
ContextRendering
GitHubPlain link
StarlightStyled button with variant coloring and optional icon
ParameterValuesDefaultDescription
variantprimary, secondary, minimalprimaryButton style variant
iconStarlight icon namenoneIcon to display alongside the label
icon-placementstart, endendIcon position relative to the label
<a href="/path" class="sl-link-button not-content primary">
Get Started
</a>