Skip to main content

Link Component

Figma

The glu-link component is a flexible link element that supports different appearances and behaviors. It enables you to specify the URL via the href property, determine where to open the link using the target property, and set the relationship between the current document and the linked document with the rel attribute. Additionally, you can adjust the size of the link with the size property to match your design system.

Basic Usage

Result
Loading...
Live Editor
<glu-link href="https://example.com">
  Visit Example
</glu-link>

Control the behavior of the link by setting the target and rel properties. For example, use target="_blank" to open the link in a new tab and include rel="noopener noreferrer" for security.

Result
Loading...
Live Editor
<glu-link href="https://example.com" target="_blank" rel="noopener noreferrer">
  Visit Example
</glu-link>

The size property allows you to adjust the visual prominence of the link. Available sizes are small, medium (default), and large.

Result
Loading...
Live Editor
<div style={{ display: 'flex', flexDirection: 'column', gap: '1rem' }}>
  <glu-link href="https://example.com" size="small">
    Small Link
  </glu-link>
  <glu-link href="https://example.com" size="medium">
    Medium Link
  </glu-link>
  <glu-link href="https://example.com" size="large">
    Large Link
  </glu-link>
</div>

Properties

PropertyAttributeDescriptionTypeDefault
href (required)hrefThe URL that the hyperlink points to.stringundefined
sizesizeThe size of the link."large" | "medium" | "small"'medium'

Built with StencilJS