Button
Button Sizes
Define a button size with .button-xs,
.button-s, .button-m, .button-l or .button--xl. The default button size is .button-m.
Button
Button
Button
Button
Button
<button type="button" class="btn btn-primary btn-xs">Button</button> <button type="button" class="btn btn-primary btn-s">Button</button> <button type="button" class="btn btn-primary btn-m">Button</button> <button type="button" class="btn btn-primary btn-l">Button</button> <button type="button" class="btn btn-primary btn-xl">Button</button>
Copy
Button Flat
Flat buttons should be used to signify
necessary or mandatory actions. There are four color options.
Primary
Secondary
Positive
Negative
<button type="button" class="btn btn-primary">Primary</button> <button type="button" class="btn btn-secondary">Secondary</button> <button type="button" class="btn btn-positive">Positve</button> <button type="button" class="btn btn-negative">Negative</button>
Copy
Button Ghost
Ghost buttons should be used to signify
optional, infrequent or subtle actions. The color options are specified with an additional
class .bg-marvel--hover, .bg--orange--hover, .bg--negative--hover, etc.
Primary
Secondary
Positive
Negative
<button type="button" class="btn btn-ghost-primary">Primary</button> <button type="button" class="btn btn-ghost-secondary">Secondary</button> <button type="button" class="btn btn-ghost-positive">Positve</button> <button type="button" class="btn btn-ghost-negative">Negative</button>
Copy
Button Block
Special case buttons to fill 100% widht of
<div> using btn-block class.
Primary Block
<button type="button" class="btn btn-primary btn-block">Primary Block</button>
Copy
Disabled Button
Disabled buttons receive a disabled
attribute.
Disabled
<button type="button" class="btn btn-primary" disabled>Disabled</button>
Copy
Button With Icon
Buttons with icons are wrapped in a parent
component.rupaicon which has to have the button size applied to with an additional class.
For example,.button-m will have a parent element with a class .rupaicon-m. The icon has to
be placed straight after the button and inline SVG.
Menu
<button type="button" class="btn btn-ghost-primary"><span><i class="icon anticon icon-bars"></i></span> Menu</button> <button type="button" class="btn btn-ghost-primary"><span><i class="icon anticon icon-bars"></i></span></button>
Copy