The SUSE Design System uses cookies to help us learn more about how we can improve the design system.
Learn more about our cookie policy

Sizing

The size of buttons plays a key role in helping users to identify buttons according to their importance.


Full width buttons

Full width buttons can span the full width of a parent container.

Add a btn-block class to create a full width button.

content_copy
<button class='btn btn-secondary btn-block'>Button</button>
<button class='btn btn-primary btn-block'>Button</button>

Extra Small

content_copy
<button class='btn btn-secondary btn-xs'>Button</button>
<button class='btn btn-primary btn-xs'>Button</button>
<button class='btn btn-secondary btn-xs'>
  <i class='eos-icons md-18'>autorenew</i> Button
</button>
<button class='btn btn-primary btn-xs' >
  <i class='eos-icons md-18'>autorenew</i> Button
</button>
<button class='btn btn-secondary btn-xs' data-toggle='tooltip' title='Add' >
  <i class='eos-icons md-18'>add</i>
</button>
<button class='btn btn-primary btn-xs' data-toggle='tooltip' title='Edit' >
  <i class='eos-icons md-18'>create</i>
</button>

Small

content_copy
<button class='btn btn-secondary btn-sm'>Button</button>
<button class='btn btn-primary btn-sm'>Button</button>
<button class='btn btn-secondary btn-sm'>
  <i class='eos-icons md-18'>autorenew</i> Button
</button>
<button class='btn btn-primary btn-sm'>
  <i class='eos-icons md-18'>autorenew</i> Button
</button>
<button class='btn btn-secondary btn-sm' data-toggle='tooltip' title='Add'>
  <i class='eos-icons md-18'>add</i>
</button>
<button class='btn btn-primary btn-sm' data-toggle='tooltip' title='Edit'>
  <i class='eos-icons md-18'>create</i>
</button>

Large

content_copy
<button class='btn btn-secondary btn-lg'>Button</button>
<button class='btn btn-primary btn-lg'>Button</button>
<button class='btn btn-secondary btn-lg'>
  <i class='eos-icons md-24'>autorenew</i> Button
</button>
<button class='btn btn-primary btn-lg'>
  <i class='eos-icons md-24'>autorenew</i> Button
</button>
<button class='btn btn-secondary btn-lg' data-toggle='tooltip' title='Add'>
  <i class='eos-icons md-24'>add</i>
</button>
<button class='btn btn-primary btn-lg' data-toggle='tooltip' title='Edit'>
  <i class='eos-icons md-24'>create</i>
</button>