Buttons
Use Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
Example
Bootstrap includes several predefined button styles, each serving its own semantic purpose, with a few extras thrown in for more control.
<xref href="#" outputclass="btn-primary">Primary</xref>
<xref href="#" outputclass="btn-secondary">Secondary</xref>
<xref href="#" outputclass="btn-success">Success</xref>
<xref href="#" outputclass="btn-danger">Danger</xref>
<xref href="#" outputclass="btn-warning">Warning</xref>
<xref href="#" outputclass="btn-info">Info</xref>
<xref href="#" outputclass="btn-light">Light</xref>
<xref href="#" outputclass="btn-dark">Dark</xref>
Outline buttons
In need of a button, but not the hefty background colors they bring? Replace the default modifier classes with
the @outputclass
and a value of btn-outline-*
to remove all background images
and colors on any button.
<xref href="#" outputclass="btn-outline-primary">Primary</xref>
<xref href="#" outputclass="btn-outline-secondary">Secondary</xref>
<xref href="#" outputclass="btn-outline-success">Success</xref>
<xref href="#" outputclass="btn-outline-danger">Danger</xref>
<xref href="#" outputclass="btn-outline-warning">Warning</xref>
<xref href="#" outputclass="btn-outline-info">Info</xref>
<xref href="#" outputclass="btn-outline-light">Light</xref>
<xref href="#" outputclass="btn-outline-dark">Dark</xref>