Lorem ipsum dolor sit amet, consectetur adipiscing elit.


Use Bootstrap’s custom button styles for actions in forms, dialogs, and more. Includes support for a handful of contextual variations, sizes, states, and more.

The .btn classes are designed to be used with the <button> element. However, you can also use these classes on <a> or <input> elements (though some browsers may apply a slightly different rendering).


<a href="#" class="btn btn-primary" role="button">Link</a>
<button class="btn btn-primary">Button</button>
<input type="button" class="btn btn-primary" value="Input" />
<input type="submit" class="btn btn-primary" value="Submit" />
<input type="reset" class="btn btn-primary" value="Reset" />

Button variations

Use any of the available button classes to quickly create a styled button . We provide a variety of colors for you to express different emotions.

<a href="#" class="btn btn-primary">Primary</a>
<a href="#" class="btn btn-secondary">Secondary</a>
<a href="#" class="btn btn-success">Success</a>
<a href="#" class="btn btn-info">Info</a>
<a href="#" class="btn btn-warning">Warning</a>
<a href="#" class="btn btn-danger">Danger</a>
<a href="#" class="btn btn-link">Link</a>

Disabled buttons

Make buttons look inactive by adding the disabled boolean attribute to any .btn element. <a>s don’t support the disabled attribute, so you must add the .disabled class to make it visually appear disabled.

<a href="#" class="btn btn-primary disabled">Primary</a>
<a href="#" class="btn btn-secondary disabled">Secondary</a>
<a href="#" class="btn btn-success disabled">Success</a>
<a href="#" class="btn btn-info disabled">Info</a>
<a href="#" class="btn btn-warning disabled">Warning</a>
<a href="#" class="btn btn-danger disabled">Danger</a>

Color variations

The classic button, in different colors.

<a href="#" class="btn btn-blue">Blue</a>
<a href="#" class="btn text-white bg-azure">Azure</a>
<a href="#" class="btn text-white bg-indigo">Indigo</a>
<a href="#" class="btn text-white bg-purple">Purple</a>
<a href="#" class="btn text-white bg-pink">Pink</a>
<a href="#" class="btn text-white bg-red">Red</a>
<a href="#" class="btn text-white bg-orange">Orange</a>
<a href="#" class="btn text-white bg-yellow">Yellow</a>
<a href="#" class="btn text-white bg-lime">Lime</a>
<a href="#" class="btn text-white bg-green">Green</a>
<a href="#" class="btn text-white bg-teal">Teal</a>

Square buttons

Add .btn-square to button to remove border-radius.

<a href="#" class="btn btn-square btn-primary">Primary</a>
<a href="#" class="btn btn-square btn-secondary">Secondary</a>
<a href="#" class="btn btn-square btn-success">Success</a>
<a href="#" class="btn btn-square btn-info">Info</a>
<a href="#" class="btn btn-square btn-warning">Warning</a>
<a href="#" class="btn btn-square btn-danger">Danger</a>

Pill buttons

Add .btn-pill class to any button to make them more rounded.

<a href="#" class="btn btn-pill btn-primary">Primary</a>
<a href="#" class="btn btn-pill btn-secondary">Secondary</a>
<a href="#" class="btn btn-pill btn-success">Success</a>
<a href="#" class="btn btn-pill btn-info">Info</a>
<a href="#" class="btn btn-pill btn-warning">Warning</a>
<a href="#" class="btn btn-pill btn-danger">Danger</a>

Outline buttons

In need of a button, but not the hefty background colors they bring? Replace the default modifier classes with the .btn-outline-* ones to remove all background images and colors on any button.

<a href="#" class="btn btn-outline-primary">Primary</a>
<a href="#" class="btn btn-outline-secondary">Secondary</a>
<a href="#" class="btn btn-outline-success">Success</a>
<a href="#" class="btn btn-outline-info">Info</a>
<a href="#" class="btn btn-outline-warning">Warning</a>
<a href="#" class="btn btn-outline-danger">Danger</a>

Button size

Add .btn-lg or .btn-sm for additional sizes.

<button type="button" class="btn btn-primary btn-lg">Large button</button>
<button type="button" class="btn btn-secondary btn-lg">Large button</button>

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

Create block level buttons—those that span the full width of a parent—by adding .btn-block.

<button type="button" class="btn btn-primary btn-block">Block level button</button>
<button type="button" class="btn btn-secondary btn-block">Block level button</button>

Button with icon

Basic buttons are traditional buttons with borders and background with an extra commponent like an icon. You can place it either on the left or the right which ever you want with different color opitons.

<button type="button" class="btn btn-dark"><i class="le le-upload mr-2"></i>Upload</button>
<button type="button" class="btn btn-warning"><i class="le le-heart mr-2"></i>I like</button>
<button type="button" class="btn btn-success"><i class="le le-check mr-2"></i>I agree</button>
<button type="button" class="btn btn-outline-primary"><i class="le le-plus mr-2"></i>More</button>
<button type="button" class="btn btn-danger"><i class="le le-link mr-2"></i>Link</button>
<button type="button" class="btn btn-info"><i class="le le-message-circle mr-2"></i>Comment</button>

Social buttons

<button type="button" class="btn btn-facebook"><i class="la la-facebook mr-2"></i>Facebook</button>
<button type="button" class="btn btn-twitter"><i class="la la-twitter mr-2"></i>Twitter</button>
<button type="button" class="btn btn-google"><i class="la la-google mr-2"></i>Google</button>
<button type="button" class="btn btn-youtube"><i class="la la-youtube mr-2"></i>Youtube</button>
<button type="button" class="btn btn-vimeo"><i class="la la-vimeo mr-2"></i>Vimeo</button>
<button type="button" class="btn btn-dribbble"><i class="la la-dribbble mr-2"></i>Dribble</button>
<button type="button" class="btn btn-github"><i class="la la-github mr-2"></i>Github</button>
<button type="button" class="btn btn-instagram"><i class="la la-instagram mr-2"></i>Instagram</button>
<button type="button" class="btn btn-pinterest"><i class="la la-pinterest mr-2"></i>Pinterest</button>
<button type="button" class="btn btn-vk"><i class="la la-vk mr-2"></i>VKontakte</button>
<button type="button" class="btn btn-rss"><i class="la la-rss mr-2"></i>RSS</button>
<button type="button" class="btn btn-flickr"><i class="la la-flickr mr-2"></i>Flickr</button>
<button type="button" class="btn btn-bitbucket"><i class="la la-bitbucket mr-2"></i>Bitbucket</button>

You can use only icons.

<button type="button" class="btn btn-icon btn-facebook"><i class="la la-facebook"></i></button>
<button type="button" class="btn btn-icon btn-twitter"><i class="la la-twitter"></i></button>
<button type="button" class="btn btn-icon btn-google"><i class="la la-google"></i></button>
<button type="button" class="btn btn-icon btn-youtube"><i class="la la-youtube"></i></button>
<button type="button" class="btn btn-icon btn-vimeo"><i class="la la-vimeo"></i></button>
<button type="button" class="btn btn-icon btn-dribbble"><i class="la la-dribbble"></i></button>
<button type="button" class="btn btn-icon btn-github"><i class="la la-github"></i></button>
<button type="button" class="btn btn-icon btn-instagram"><i class="la la-instagram"></i></button>
<button type="button" class="btn btn-icon btn-pinterest"><i class="la la-pinterest"></i></button>
<button type="button" class="btn btn-icon btn-vk"><i class="la la-vk"></i></button>
<button type="button" class="btn btn-icon btn-rss"><i class="la la-rss"></i></button>
<button type="button" class="btn btn-icon btn-flickr"><i class="la la-flickr"></i></button>
<button type="button" class="btn btn-icon btn-bitbucket"><i class="la la-bitbucket"></i></button>

Icon buttons

Icon only button. Add .btn-icon class to remove unnecessary padding from button.

<button type="button" class="btn btn-icon btn-primary"><i class="ri-lightbulb-line"></i></button>
<button type="button" class="btn btn-icon btn-primary btn-github"><i class="ri-github-line"></i></button>
<button type="button" class="btn btn-icon btn-primary btn-success"><i class="ri-download-line"></i></button>
<button type="button" class="btn btn-icon btn-primary btn-warning"><i class="ri-alert-line"></i></button>
<button type="button" class="btn btn-icon btn-primary btn-danger"><i class="ri-delete-bin-7-line"></i></button>
<button type="button" class="btn btn-icon btn-primary btn-purple"><i class="ri-pie-chart-line"></i></button>
<button type="button" class="btn btn-icon btn-primary btn-secondary"><i class="ri-share-line"></i></button>

Button dropdown

Wrap the dropdown’s toggle (your button or link) and the dropdown menu within .dropdown, or another element that declares position: relative;. Dropdowns can be triggered from <a> or <button> elements to better fit your potential needs.

<div class="dropdown">
    <button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown">
        <i class="le le-calendar"></i>
<div class="dropdown-menu">
    <a class="dropdown-item" href="#">Dropdown link</a>
    <a class="dropdown-item" href="#">Dropdown link</a>
<div class="dropdown">
    <button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown">
        <i class="le le-calendar mr-2"></i>Show calendar
    <div class="dropdown-menu">
    <a class="dropdown-item" href="#">Dropdown link</a>
    <a class="dropdown-item" href="#">Dropdown link</a>
<div class="dropdown">
    <button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown">
            Show calendar
    <div class="dropdown-menu">
    <a class="dropdown-item" href="#">Dropdown link</a>
    <a class="dropdown-item" href="#">Dropdown link</a>

List of buttons

You can now create a list of buttons with the .btn-list container.

<div class="btn-list">
    <a href="#" class="btn btn-success">Save changes</a>
    <a href="#" class="btn btn-secondary">Save and continue</a>
    <a href="#" class="btn btn-danger">Cancel</a>

If the list is very long, it will automatically wrap on multiple lines, while keeping all buttons evenly spaced.

<div class="btn-list">
    <a href="#" class="btn btn-secondary">One</a>
    <a href="#" class="btn btn-secondary">Two</a>
    <a href="#" class="btn btn-secondary">Three</a>
    <a href="#" class="btn btn-secondary">Four</a>
    <a href="#" class="btn btn-secondary">Five</a>
    <a href="#" class="btn btn-secondary">Six</a>
    <a href="#" class="btn btn-secondary">Seven</a>
    <a href="#" class="btn btn-secondary">Eight</a>
    <a href="#" class="btn btn-secondary">Nine</a>
    <a href="#" class="btn btn-secondary">Ten</a>
    <a href="#" class="btn btn-secondary">Eleven</a>
    <a href="#" class="btn btn-secondary">Twelve</a>
    <a href="#" class="btn btn-secondary">Thirteen</a>
    <a href="#" class="btn btn-secondary">Fourteen</a>
    <a href="#" class="btn btn-secondary">Fifteen</a>
    <a href="#" class="btn btn-secondary">Sixteen</a>
    <a href="#" class="btn btn-secondary">Seventeen</a>
    <a href="#" class="btn btn-secondary">Eighteen</a>
    <a href="#" class="btn btn-secondary">Nineteen</a>

Use the .text-center or the .text-right modifiers to alter the alignment.

<div class="btn-list text-center">
    <a href="#" class="btn btn-primary">Save changes</a>
    <a href="#" class="btn btn-secondary">Save and continue</a>
<div class="btn-list text-right">
    <a href="#" class="btn btn-primary">Save changes</a>
    <a href="#" class="btn btn-secondary">Save and continue</a>