Bootstrap Button Size Increase
Button Size: Default
Default button size.
Button Size: Small
Add .btn-sm
for small button size.
Button Size: Large
Add .btn-lg
for large button size.
Button Size: X-Large
Add .bsb-btn-xl
for X-Large button size.
Button Size: 2X-Large
Add .bsb-btn-2xl
for 2X-Large button size.
Button Size: 3X-Large
Add .bsb-btn-3xl
for 3X-Large button size.
Button Size: 4X-Large
Add .bsb-btn-4xl
for 4X-Large button size.
<!-- Button 1 - Bootstrap Brain Component -->
<section class="py-3 py-md-5">
<div class="container">
<div class="row gy-3 gy-md-5">
<div class="col-12">
<h2>Button Size: Default</h2>
<p>Default button size.</p>
<div class="bsb-code-snippet border rounded">
<div class="p-4">
<button type="button" class="btn btn-primary">Default Button</button>
</div>
<div class="d-flex align-items-center px-4 py-3 border-0 border-top border-bottom bg-light">
<div class="font-monospace text-body-secondary text-uppercase">
HTML
</div>
<div class="ms-auto">
<a href="#!" class="bsb-clipboard" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard">
<i class="bsb-icon bi-clipboard"></i>
</a>
</div>
</div>
<div class="bsb-highlight px-4 py-3 bg-light">
<pre class="m-0 p-0 bg-transparent" style="white-space: pre-line;">
<code class="language-html m-0 p-0" style="white-space: pre-line;"><button type="button" class="btn btn-primary">Default Button</button></code>
</pre>
</div>
</div>
</div>
<div class="col-12">
<h2>Button Size: Small</h2>
<p>Add <code>.btn-sm</code> for small button size.</p>
<div class="bsb-code-snippet border rounded">
<div class="p-4">
<button type="button" class="btn btn-primary btn-sm">Small Button</button>
</div>
<div class="d-flex align-items-center px-4 py-3 border-0 border-top border-bottom bg-light">
<div class="font-monospace text-body-secondary text-uppercase">
HTML
</div>
<div class="ms-auto">
<a href="#!" class="bsb-clipboard" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard">
<i class="bsb-icon bi-clipboard"></i>
</a>
</div>
</div>
<div class="bsb-highlight px-4 py-3 bg-light">
<pre class="m-0 p-0 bg-transparent" style="white-space: pre-line;">
<code class="language-html m-0 p-0" style="white-space: pre-line;"><button type="button" class="btn btn-primary btn-sm">Small Button</button></code>
</pre>
</div>
</div>
</div>
<div class="col-12">
<h2>Button Size: Large</h2>
<p>Add <code>.btn-lg</code> for large button size.</p>
<div class="bsb-code-snippet border rounded">
<div class="p-4">
<button type="button" class="btn btn-primary btn-lg">Large Button</button>
</div>
<div class="d-flex align-items-center px-4 py-3 border-0 border-top border-bottom bg-light">
<div class="font-monospace text-body-secondary text-uppercase">
HTML
</div>
<div class="ms-auto">
<a href="#!" class="bsb-clipboard" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard">
<i class="bsb-icon bi-clipboard"></i>
</a>
</div>
</div>
<div class="bsb-highlight px-4 py-3 bg-light">
<pre class="m-0 p-0 bg-transparent" style="white-space: pre-line;">
<code class="language-html m-0 p-0" style="white-space: pre-line;"><button type="button" class="btn btn-primary btn-lg">Large Button</button></code>
</pre>
</div>
</div>
</div>
<div class="col-12">
<h2>Button Size: X-Large</h2>
<p>Add <code>.bsb-btn-xl</code> for X-Large button size.</p>
<div class="bsb-code-snippet border rounded">
<div class="p-4">
<button type="button" class="btn btn-primary bsb-btn-xl">XL Button</button>
</div>
<div class="d-flex align-items-center px-4 py-3 border-0 border-top border-bottom bg-light">
<div class="font-monospace text-body-secondary text-uppercase">
HTML
</div>
<div class="ms-auto">
<a href="#!" class="bsb-clipboard" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard">
<i class="bsb-icon bi-clipboard"></i>
</a>
</div>
</div>
<div class="bsb-highlight px-4 py-3 bg-light">
<pre class="m-0 p-0 bg-transparent" style="white-space: pre-line;">
<code class="language-html m-0 p-0" style="white-space: pre-line;"><button type="button" class="btn btn-primary bsb-btn-xl">XL Button</button></code>
</pre>
</div>
</div>
</div>
<div class="col-12">
<h2>Button Size: 2X-Large</h2>
<p>Add <code>.bsb-btn-2xl</code> for 2X-Large button size.</p>
<div class="bsb-code-snippet border rounded">
<div class="p-4">
<button type="button" class="btn btn-primary bsb-btn-2xl">2XL Button</button>
</div>
<div class="d-flex align-items-center px-4 py-3 border-0 border-top border-bottom bg-light">
<div class="font-monospace text-body-secondary text-uppercase">
HTML
</div>
<div class="ms-auto">
<a href="#!" class="bsb-clipboard" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard">
<i class="bsb-icon bi-clipboard"></i>
</a>
</div>
</div>
<div class="bsb-highlight px-4 py-3 bg-light">
<pre class="m-0 p-0 bg-transparent" style="white-space: pre-line;">
<code class="language-html m-0 p-0" style="white-space: pre-line;"><button type="button" class="btn btn-primary bsb-btn-2xl">2XL Button</button></code>
</pre>
</div>
</div>
</div>
<div class="col-12">
<h2>Button Size: 3X-Large</h2>
<p>Add <code>.bsb-btn-3xl</code> for 3X-Large button size.</p>
<div class="bsb-code-snippet border rounded">
<div class="p-4">
<button type="button" class="btn btn-primary bsb-btn-3xl">3XL Button</button>
</div>
<div class="d-flex align-items-center px-4 py-3 border-0 border-top border-bottom bg-light">
<div class="font-monospace text-body-secondary text-uppercase">
HTML
</div>
<div class="ms-auto">
<a href="#!" class="bsb-clipboard" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard">
<i class="bsb-icon bi-clipboard"></i>
</a>
</div>
</div>
<div class="bsb-highlight px-4 py-3 bg-light">
<pre class="m-0 p-0 bg-transparent" style="white-space: pre-line;">
<code class="language-html m-0 p-0" style="white-space: pre-line;"><button type="button" class="btn btn-primary bsb-btn-3xl">3XL Button</button></code>
</pre>
</div>
</div>
</div>
<div class="col-12">
<h2>Button Size: 4X-Large</h2>
<p>Add <code>.bsb-btn-4xl</code> for 4X-Large button size.</p>
<div class="bsb-code-snippet border rounded">
<div class="p-4">
<button type="button" class="btn btn-primary bsb-btn-4xl">4XL Button</button>
</div>
<div class="d-flex align-items-center px-4 py-3 border-0 border-top border-bottom bg-light">
<div class="font-monospace text-body-secondary text-uppercase">
HTML
</div>
<div class="ms-auto">
<a href="#!" class="bsb-clipboard" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard">
<i class="bsb-icon bi-clipboard"></i>
</a>
</div>
</div>
<div class="bsb-highlight px-4 py-3 bg-light">
<pre class="m-0 p-0 bg-transparent" style="white-space: pre-line;">
<code class="language-html m-0 p-0" style="white-space: pre-line;"><button type="button" class="btn btn-primary bsb-btn-4xl">4XL Button</button></code>
</pre>
</div>
</div>
</div>
<div class="col-12">
<h2>Button Size: 5X-Large</h2>
<p>Add <code>.bsb-btn-5xl</code> for 5X-Large button size.</p>
<div class="bsb-code-snippet border rounded">
<div class="p-4">
<button type="button" class="btn btn-primary bsb-btn-5xl">5XL Button</button>
</div>
<div class="d-flex align-items-center px-4 py-3 border-0 border-top border-bottom bg-light">
<div class="font-monospace text-body-secondary text-uppercase">
HTML
</div>
<div class="ms-auto">
<a href="#!" class="bsb-clipboard" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard">
<i class="bsb-icon bi-clipboard"></i>
</a>
</div>
</div>
<div class="bsb-highlight px-4 py-3 bg-light">
<pre class="m-0 p-0 bg-transparent" style="white-space: pre-line;">
<code class="language-html m-0 p-0" style="white-space: pre-line;"><button type="button" class="btn btn-primary bsb-btn-5xl">5XL Button</button></code>
</pre>
</div>
</div>
</div>
</div>
</div>
</section>
Bootstrap includes three button sizes. Apart from Default button size, Add
.btn-lg
for larger or .btn-sm
for smaller buttons. For additional sizes, Add button-1.css
stylesheet in your Bootstrap Project. You can use .bsb-btn-*
classes to increase the Bootstrap button size.