Although buttons and links can look similar, they serve different purposes. A button triggers an action within the current interface, while a link navigates users to another destination. Button link bridges this visual distinction by providing the appearance of a button while retaining the expected behavior of a regular link.
This means that, regardless of its visual variant, button link should behave like a regular link rather than a button. Users should be able to navigate to its destination, open it in a new tab, or copy its link address using standard browser functionality. It should also support the expected keyboard interaction for links, where users can navigate to it using the keyboard and activate it using Enter. Its button-like appearance does not change its primary purpose: navigation.

- 1.Container: provides the interactive area and visual treatment inherited from the existing Button component.
- 2.Icon: appears before or after the label to provide additional context or clarify the destination.
- 3.Label: communicates the destination or purpose of the navigation.
Button link follows the existing button component's typography, spacing, sizing, and visual styling rules.
Button link supports three visual variants: primary, secondary, and tertiary. Each variant provides a different level of visual emphasis according to the importance of the destination within the interface.
| Variant | Description |
|---|---|
| Primary | For the most prominent navigation destination within a page or user flow. Use when navigation represents the main call to action. |
| Secondary | For less prominent navigation that still requires button-like emphasis. It can be used alongside a primary button link or independently. |
| Tertiary | For the least pronounced navigation destinations. Use when a lighter visual treatment is sufficient, such as supporting or contextual navigation. |
Choose the variant according to the importance of the destination within the interface. Avoid giving multiple navigation elements the same level of prominence when a clear visual hierarchy can be established.
Any icon from the application's chosen icon library can be used in Halstack button link. It is recommended to use the same icon library throughout the application to maintain visual consistency.
- Icons can appear before or after the label, with an 8-pixel separation from the text, following the existing button component's spacing rules.
- Use icons when they provide additional meaning or help users understand the destination.
- Consider using a trailing arrow to reinforce navigation when appropriate.
- An external-link icon can help users recognize that the destination leads outside the current application.
- Avoid using icons solely for decoration. The icon should provide meaningful context.
- Ensure the label communicates the destination without relying on the icon alone.
- Icon-only button links are allowed when the context supports them. In these cases, provide a tooltip and an accessible name to communicate the link's purpose.
Button link follows the existing button component's sizing options: small, medium, and large. The size should be selected according to the surrounding interface while maintaining consistency with other interactive elements.
Varying button sizes help establish a clear visual hierarchy, guiding users towards the most critical actions. Primary actions are made more prominent with larger buttons, while secondary actions use smaller buttons to avoid distraction.
Medium button links provide a balance between visibility and space usage, making them suitable for general navigation across applications.
Use cases:
- General navigation: Use as the standard size for most navigation scenarios.
- Consistency: Helps maintain a consistent appearance with other medium-sized interactive elements.
Large button links provide greater visual prominence and are suitable for navigation that requires stronger emphasis.
Use cases:
- Prominent destinations Use when directing users to an important page or section.
- Call to action: Suitable for prominent navigation areas where encouraging users to visit another destination is important.
Links and buttons are both interactive elements, but they serve different purposes. The main difference is whether the interaction takes users to another destination or performs an action within the current interface.
Choosing the right component is important because it affects not only how an element looks, but also how it behaves, how users interact with it, and how assistive technologies interpret it.
Use a link when the primary purpose is to navigate users to another page, section, or resource, and the destination does not require strong visual emphasis.
Links are commonly integrated into content and provide a lightweight way to direct users to related information.
Use cases:
- Inline navigation: Direct users to related information within a paragraph or sentence.
- Performing an operation Link to related pages, documentation, or external references.
- Supporting navigation: Provide access to additional resources or secondary destinations.
Use a button when the interaction triggers an action or changes something within the current application or interface.
A button is intended for actions that do not primarily involve navigating to another destination.
Use cases:
- Submitting information: Submit a form or send user-provided information.
- Performing an operation: Save changes, delete an item, or update a record.
- Changing the interface: Open a dialog, expand a section, or trigger an interaction.
- Executing a process: Start an operation or initiate a workflow.
Use a button link when the primary purpose is navigation, but the destination needs more visual prominence than a standard Link can provide.
Button link combines the visual appearance of a button with the native behavior and semantics of a link. It is useful when a navigation destination is important enough to stand out within the interface, but the interaction should still behave like a link.
Use cases:
- Prominent calls to action: Direct users to an important destination, such as "View Details" or "Open Project".
- Highlighted navigation: Provide access to an important section or resource that needs greater visual emphasis than a standard text link.
- Use for navigation: Button link should only be used when the primary purpose is to navigate users to another destination.
- Choose the appropriate component: Use button for actions, standard Link for lightweight navigation, and Button Link for prominent navigation.
- Use clear labels: Choose concise and descriptive labels that help users understand where the link will take them.
- Maintain consistency: Follow the existing button component's typography, spacing, sizing, and visual styling rules.
- Avoid unnecessary emphasis: Do not use button link when a standard link provides sufficient visual emphasis.
- Reserve primary for the main destination: Use primary for the most prominent navigation destination within the relevant context.
- Use secondary for supporting destinations: Choose Secondary when navigation needs emphasis without competing with the primary destination.
- Use tertiary for less prominent navigation: Use Tertiary when a lighter visual treatment is more appropriate.
- Establish a clear hierarchy: Avoid presenting several navigation destinations with equal visual prominence when one should receive more attention
- Internal navigation: Use internal links to navigate to destinations within the same application or website, following the application's established routing behavior.
- External navigation: Use external links to navigate to destinations outside the current application or website. Consider an external-link icon when it helps communicate this behavior.
- Opening a new tab: Open destinations in a new tab only when required by the use case. When appropriate, communicate this behavior to users.
- Maintain expected link behaviors: Implement button link as a native link element with a valid destination (such as an
hrefattribute), rather than as a button element. This ensures assistive technologies identify it as a link and that users retain expected link functionality, such as opening the destination in a new tab, copying the link address, and activating it using the Enter key. The component's visual variant should not change its underlying semantics or behavior. - Provide descriptive labels: Ensure the accessible name communicates the destination or purpose of the link.
- Ensure sufficient contrast: Maintain sufficient contrast between the component and its background across its supported visual states.
- Do not rely on icons alone: Icons should not replace the accessible name of the link.
- Handle unavailable destinations appropriately If navigation is unavailable, ensure the implementation prevents navigation and communicates the intended state to assistive technologies.