Buttons
# Intro
Buttons are classless by default.
The button
class can be added to the following elements:
<a>
anchor links<button>
buttons<label>
labels<input type="button">
button inputs<input type="reset">
reset inputs<input type="submit">
submit inputs
# Colors
The button
class has color modifiers available with -primary
, -success
, -warning
, -danger
, -dark
, and -light
.
# Disabled
Buttons can be disabled. Just add the disabled
attribute.
# Sizing
Buttons can be sized using the -small
, -normal
, -medium
, and -large
modifiers.
The -block
modifier can be added to create block level buttons that span the full width of the parent.
# Shape
You can change the shape of buttons by using the border radius utility.
# Outline
Buttons can be outlined using the -outline
modifier. Backgrounds will be transparent. The -light
modifier should only be used in the dark theme or inside darker elements.
# Icons
Buttons are icon agnostic and will work with any icon fonts or SVGs. Icons are not included, but featured below are buttons with Line Icons.
# Groups
You can group together buttons by wrapping them in a buttons
container. Buttons in groups will have their left and right margins removed.