Buttons
Use Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
Last updated
Was this helpful?
Use Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
Last updated
Was this helpful?
html_tag
: The HTML tag to use for the button (button | a). Defaults to button
.
url
: URL link for the button when the HTML tag is an anchor link.
color
: Bootstrap includes several predefined button styles, each serving its semantic purpose, with a few extras thrown in for more control. (primary | secondary | success | danger | warning | info | dark | light | link)
outline
: (true|false) In need of a button, but not the hefty background colors they bring? Replace the default modifier classes with the .btn-outline-*
ones to remove all background images and colors on any button.
size
: (btn-sm | btn-lg
) Bootstrap button size
disabled
: (true|false
) Disabled button
button_utility_classes
: An array of utility classes.
content
: The content for the button
Example #1: Primary button
Example #2: Anchor button as Read more link in a Card
Example #3: Disabled Anchor button