A brief description about the button link shortcode.
1{{< bs/btn-link >}}
2TEXT
3{{< /bs/btn-link >}}
Recommended for rich button text, it’s useful for the case of nesting shortcodes, such as icons/icon.
1{{< bs/btn-link text=TEXT />}}
Recommended for plain button text.
url
Position | Name | Type | Default | Required |
---|---|---|---|---|
#0 | url | string | - | Y |
The URL or reference of button link, it'll look for the reference page first for internal pages.
style
Position | Name | Type | Default | Required |
---|---|---|---|---|
#1 | style | string | primary | - |
The button link style.
style
optionsprimary
, secondary
, success
, danger
, warning
, info
, light
, dark
, link
outline
Position | Name | Type | Default | Required |
---|---|---|---|---|
#2 | outline | string | false | - |
Whether to enable outline style.
size
Position | Name | Type | Default | Required |
---|---|---|---|---|
#3 | size | string | - | - |
The size of button link.
size
optionssm
, lg
class
Position | Name | Type | Default | Required |
---|---|---|---|---|
- | class | string | - | - |
Used to add extra CSS classes.
1{{< bs/btn-link url="#self-closing-button-link" text="Self-Closing" />}}
1{{< bs/btn-link url="#closing-button-link" >}}
2Closing {{< icons/icon vendor=bs name=x-circle >}}
3{{< /bs/btn-link >}}
1{{< bs/btn-link "#button-link-styles" "primary" >}}
2Primary
3{{< /bs/btn-link >}}
4
5{{< bs/btn-link url="#button-link-styles" style="secondary" text="Secondary" />}}
6
7{{< bs/btn-link "#button-link-styles" "success" >}}
8Success
9{{< /bs/btn-link >}}
10
11{{< bs/btn-link "#button-link-styles" "danger" >}}
12Danger
13{{< /bs/btn-link >}}
14
15{{< bs/btn-link "#button-link-styles" "warning" >}}
16Warning
17{{< /bs/btn-link >}}
18
19{{< bs/btn-link "#button-link-styles" "info" >}}
20Info
21{{< /bs/btn-link >}}
22
23{{< bs/btn-link "#button-link-styles" "light" >}}
24Light
25{{< /bs/btn-link >}}
26
27{{< bs/btn-link "#button-link-styles" "dark" >}}
28Dark
29{{< /bs/btn-link >}}
30
31{{< bs/btn-link "#button-link-styles" "link" >}}
32Link
33{{< /bs/btn-link >}}
1{{< bs/btn-link url="#outline-button-link" outline=true >}}
2Primary outline button link
3{{< /bs/btn-link >}}
1{{< bs/btn-link url="#button-link-sizes" size=sm >}}
2Smaller button link size
3{{< /bs/btn-link >}}
4
5{{< bs/btn-link url="#button-link-sizes" >}}
6Normal button link size
7{{< /bs/btn-link >}}
8
9{{< bs/btn-link url="#button-link-sizes" size=lg >}}
10Lager button link size
11{{< /bs/btn-link >}}
1{{< bs/btn-link url="#button-link-with-extra-classes" size=lg class="d-block py-3 rounded-0" >}}
2Button link with extra classes
3{{< /bs/btn-link >}}
1{{< bs/btn-link "https://hbstack.dev/" >}}
2External link
3{{< /bs/btn-link >}}
4
5{{</* bs/btn-link "docs/docker" >}}
6Internal link
7{{< /bs/btn-link >}}