General UI
Badges
Badges scale to match the size of the immediate parent element by using relative font sizing and emunits.
Pill Badges
Use the .badge-pillmodifier class to make badges more rounded (with a larger border-radiusand 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 .btncan 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 .droprightto the parent element.
Dropup variation
Trigger dropdown menus above elements by adding .dropupto 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-splitfor 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 .dropleftto the parent element.
Menu alignment
Add .dropdown-menu-right to a .dropdown-menuto 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-lgor .pagination-smfor 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.