is now part of Shuffle™. The new editor includes templates for Bootstrap, Bulma, Material-UI, and Tailwind CSS.
Switch to Shuffle →

Bootstrap class: .btn-sm

<button type="button" class="btn btn-primary btn-sm">Small button</button>

Preview

Check .btn-sm in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

Tips 💡

Sass source

/* _button-group.scss:90 */
.btn-sm + .dropdown-toggle-split {
  padding-right: $btn-padding-x-sm * .75;
  padding-left: $btn-padding-x-sm * .75;
}

/* _buttons.scss:117 */
.btn-sm {
  @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
}

Uses variables

Code copied to the clipboard.

Copying failed

/* _button-group.scss:90 */
$btn-padding-x-sm
$btn-padding-x-sm

/* _buttons.scss:117 */
$btn-padding-y-sm
$btn-padding-x-sm
$font-size-sm
$btn-line-height-sm
$btn-border-radius-sm

More in Bootstrap Button Modifiers