Buttons
Use Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
Available Properties:
html_tag: The HTML tag to use for the button (button | a). Defaults tobutton.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 sizedisabled: (true|false) Disabled buttonbutton_utility_classes: An array of utility classes.
Available Slots:
content: The content for the button
Examples
Example #1: Primary button
{% include 'radix:button' with {
html_tag: 'button',
color: 'primary',
content: 'Login'
} %}Example #2: Anchor button as Read more link in a Card
Example #3: Disabled Anchor button
Last updated
Was this helpful?