Elements

Over a dozen reusable components built to provide popovers, media objects, navigation, tooltips and much more.
List Group

List groups are a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content.

Basic example with Badges

The most basic list group is simply an unordered list with list items, and the proper classes. Add the badges component to any list group item and it will automatically be positioned on the right.

  • 14 Cras justo odio
  • 2 Dapibus ac facilisis in
  • 1 Morbi leo risus
Linked items

Linkify list group items by using anchor tags instead of list items (that also means a parent <div> instead of an <ul>). No need for individual parents around each element.

Contextual classes

Contextual classes also work with .list-group-item-action. Note the addition of the hover styles here not present in the previous example. Also supported is the .active state; apply it to indicate an active selection on a contextual list group item.

Tooltips
Tooltip in buttons

The way to initialize all tooltips on a page would be to select them by their data-toggle="tooltip" attribute

Hover over the links below to see tooltips:

Tincidunt lobortis feugiat vivamus at left eget arcu dictum varius duis at consectetur lorem. Vitae elementum curabitur right nunc sed velit dignissim sodales ut eu sem integer vitae. Turpis egestas bottom pharetra convallis posuere morbi leo urna, top at elementum eu, facilisis sed odio morbi quis commodo odio. In cursus click turpis massa tincidunt dui ut.

I can even contain HTML. Check me out!

Popovers

Add small overlays of content, like those on the iPad, to any element for housing secondary information.

Popover in buttons

The way to initialize all tooltips on a page would be to select them by their data-toggle="popover" attribute

Dismiss on next click

For proper cross-browser and cross-platform behavior, you must use the <a> tag, not the <button> tag, and you also must include a tabindex attribute.

Dismissible popover

Others

Options can be passed via data attributes or JavaScript.

Progress Bars

Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.

Static Progress Bars

Progress bars use some of the same button and alert classes for consistent styles.

Basic

60% Complete (success)
40% Complete
20% Complete
60% Complete
80% Complete

Striped

60% Complete (success)
20% Complete
60% Complete
80% Complete

Animated

60% Complete (success)
20% Complete
60% Complete
80% Complete

Sizes

60% Complete
40% Complete
20% Complete

With label

60%
86/100

Stacked

35% Complete (success)
20% Complete (warning)
10% Complete (danger)
Pagination

Provide pagination links for your site or app with the multi-page pagination component, or the simpler pager alternative. Simple pagination, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.

Default Pagination

Simple pagination, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.

Fancy larger or smaller pagination? Add .pagination-lg or .pagination-sm for additional sizes.

Colorful

Use any of the available button classes to quickly create a styled pagination.

Badges

Using Bootstrap, you may create inline labels, i.e. Label and annotate text and badges, i.e. indicators and unread counts.

Contextual variations

Add any of the below mentioned modifier classes to change the appearance of a badge.

BadgeClass
Primarybadge badge-primary
Successbadge badge-success
Warningbadge badge-warning;
Dangerbadge badge-danger
Infobadge badge-info
Darkbadge badge-dark
Pill badges

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.

BadgeClass
Primarybadge badge-pill badge-primary
Successbadge badge-pill badge-success
Warningbadge badge-pill badge-warning;
Dangerbadge badge-pill badge-danger
Infobadge badge-pill badge-info
Darkbadge badge-pill badge-dark
Rating

Bootstrap Rating is a jQuery plugin that creates a rating control that uses Bootstrap glyphicons for rating symbols.

Options

Default

Half rating

Customize tooltips

Readonly rating with a value

Custom icons

Four options are available: top, right, bottom, and left aligned.