UI Elements
Buttons
Use the button classes on an <a>
, <button>
, or <input>
element.
Use a classes .btn-outline-**
to quickly create a bordered buttons.
Add .btn-rounded
to default button to get rounded corners.
Button-Sizes
Add .btn-lg
, .btn-sm
for additional sizes.
Button-Disabled
Add the disabled
attribute to <button>
buttons.
Block Button
Create block level buttons,with by adding add .btn-block
.
Button Group
Wrap a series of buttons with .btn
in .btn-group
.
Modals
A rendered modal with header, body, and set of actions in the footer.
Tabs
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.
Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt.Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.
Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt.Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.
Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt.Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.
Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt.Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.
Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt.Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.
Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt.Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.
Accordions
Cards
Card title
Some quick example text to build on the card title and make up the bulk of the card's content. With supporting text below as a natural lead-in to additional content.
ButtonCard title
Some quick example text to build on the card title.
- Dapibus ac facilisis in
Some quick example text to build on the card title and make up the bulk of the card's content. With supporting text below as a natural lead-in to additional content.
ButtonCard title
Support card subtitle
Some quick example text to build on the card title and make up the bulk of the card's content.
Card link Another linkBadges
Badges scale to match the size of the immediate parent element by using relative font sizing and em
units.
Use the .badge-pill
modifier class to make badges more rounded (with a larger border-radius
and additional horizontal padding
). Useful if you miss the badges from v3
Dropdowns
Toggle contextual overlays for displaying lists of links and more with the Bootstrap dropdown plugin.
Single button dropdowns
Any single .btn
can be turned into a dropdown
toggle with some markup changes. Here’s how you can put them to work
with either <button>
elements:
Variant
The best part is you can do this with any button variant, too:
Dropright variation
Trigger dropdown menus at the right of the elements by adding .dropright
to the parent element.
Dropup variation
Trigger dropdown menus above elements
by adding .dropup
to the parent
element.
Split button dropdowns
Similarly, create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of .dropdown-toggle-split
for proper spacing around the dropdown caret.
Sizing
Button dropdowns work with buttons of all sizes, including default and split dropdown buttons.
Dropleft variation
Trigger dropdown menus at the right of the elements by adding .dropleft
to the parent element.
Menu alignment
Add .dropdown-menu-right
to a .dropdown-menu
to right
align the dropdown menu.
Pagination
Provide pagination links for your site or app with the multi-page pagination component.
Default Pagination
Simple pagination inspired by Rdio, great for apps and search results.
Sizing
Add .pagination-lg
or .pagination-sm
for additional sizes.
Alignment
Change the alignment of pagination components with flexbox utilities.
Breadcrumb
Indicate the current page’s location within a navigational hierarchy.
Popovers
Add small overlays of content, like those on the iPad, to any element for housing secondary information.
Tooltips
Four options are available: top, right, bottom, and left aligned.
Progress
Basic Example
Default progress bar.
Contextual alternatives
Progress bars use some of the same button and alert classes for consistent styles.
Striped example
Uses a gradient to create a striped effect.
Size example
We only set a height
value on the .progress
, so if you change that value the inner .progress-bar
will automatically resize accordingly.
Spinners
Border spinner
Use the border spinners for a lightweight loading indicator.
Growing spinner
If you don’t fancy a border spinner, switch to the grow spinner. While it doesn’t technically spin, it does repeatedly grow!