Skip to content

Link

Use links for moving from one page to another. The Link component styles anchor tags with default blue styling and hover text-decoration.

Examples

Default

<%= render(Primer::LinkComponent.new(href: "http://www.google.com")) { "Link" } %>

Muted

<%= render(Primer::LinkComponent.new(href: "http://www.google.com", muted: true)) { "Link" } %>

Arguments

NameTypeDefaultDescription
hrefStringN/AURL to be used for the Link
mutedBooleanfalseUses light gray for Link color, and blue on hover
system_argumentsHashN/ASystem arguments