Link button
2 min. read
learn, add, link, buttons, content, helps, users, navigate
Last update: 31-Jul-2025
Tags Related Summary
Link buttons helps users to navigate inside your documentation or access external sites. Docaroo provides link buttons in style. You can add individual link buttons or group link buttons.

Summary

Learn how to add link buttons to your content. Link buttons helps users to navigate inside your documentation or access external sites. Docaroo provides link buttons in bootstrap style. Check Bootstrap button styles for more details. You can add individual link buttons or group link buttons. Additionally, you can place anchors anywhere in the document and references to them. As example, here is an anchor placed in this document.

We do not overwrite the known markdown syntax for links, we only complement it by adding new functionalitieds for links.

Single button link

Primary outline link button targeting external link in a new tab.

{% include elements/link-btn.html 
    type="primary" 
    outline="true" 
    text="External link" 
    href="https://pmc-expert.com" 
    newTab="true" 
%}

External link

Warning button targeting a documentation permalink in the same tab

{% include elements/link-btn.html 
    type="warning" 
    text="Internal link" 
    href="/components/intro/" 
%}

Internal link

Button link groups

Add more buttons in the same section like this:

{% capture buttons %}
    type=primary|outline=false|text=Internal link|href="/intro/"|newTab=true,
    type=secondary|outline=false|text=External link|href="https://pmc-expert.com"|newTab=true,
    type=success|outline=false|text=Other external|href="https://hub.innohub.space"|newTab=false
{% endcapture %}

{% include elements/link-btn-group.html buttons=buttons %}

Please observe and respect the syntax as shown in the example above. Changing the form in which the buttons are defined may lead to unexpected render of the buttons.

Parameters

  • type: type of the link (primary, secondary, warning, succees, danger, info, light, dark, link). See also Bootstap buttons. Default value is primary. If type=link, outline and border are ignored.
  • outline: See Bootstap buttons
  • border: specify if the button has or not a border, default value is false
  • href: link to be targeted when click on the button
  • newTab: specify if to open href in the same or a new tab
  • text: the text to be rendered on the button

Anchor links

Place anchors anywhere in the document like this:

This is {%- include elements/anchor.html id="docarooTestAnchorId" -%} anchor inside the document.

This is anchor inside the document. Observe the anchor word in the Summary above and click on it.


Comments
Title : pageTitle
Reference : anchor