Link button
Use the <LinkButton>
component for visually distinct call-to-action links. A link button is useful for directing users to the most relevant or actionable content and often used on landing pages
A <LinkButton>
requires an href
attribute and optionally accepts other link attributes such as target
.
The icon
attribute can optionally be set to the name of one of Starlight’s built-in icons to include an icon next to the text. The iconPlacement
attribute can be used to place the icon before the text by setting it to start
(defaults to end
).
Customize the appearance of the link button using the variant
attribute, which can be set to primary
(the default), secondary
, or minimal
.
Variants
Primary
Get started
Secondary
Get started
Minimal
Get started
Icon and placement
Icon start
Get started
Icon end
Get started
Keystatic config
To add this Starlight component as a Keystatic content component, register it as a content component with the following schema: