--- layout: default title: More Components slug: more lead: "Over a dozen reusable components built to provide Leap users with a decent web browsing experience" base_url: "../" ---
Provide pagination links for your site or app with the multi-page pagination component, or the simpler pager alternative.
Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.
{% highlight html %} {% endhighlight %}
Links are customizable for different circumstances. Use .disabled
for unclickable links and .active
to indicate the current page.
You can optionally swap out active or disabled anchors for <span>
to remove click functionality while retaining intended styles.
Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.
By default, the pager centers links.
{% highlight html %} {% endhighlight %}Alternatively, you can align each link to the sides:
{% highlight html %} {% endhighlight %}
Pager links also use the general .disabled
utility class from the pagination. You have two options, you can either not use leap-interactive
on the element, or specify leap-disabled-hover="true"
and leap-disabled-tap="true"
List groups are a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content.
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.
Add nearly any HTML within, even for linked list groups like the one below. Just add leap-interactive
to the anchor.
Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Navbars are responsive meta components that serve as navigation headers for your application or site. They begin collapsed (and are toggleable) in mobile views and become horizontal as the available viewport width increases.
Depending on the content in your navbar, you might need to change the point at which your navbar switches between collapsed and horizontal mode. Customize the @grid-float-breakpoint
variable or add your own media query.
The responsive navbar requires the collapse plugin to be included in your version of Leapstrap.
Be sure to add a role="navigation"
to every navbar to help with accessibility.
Align nav links, forms, buttons, or text, using the .navbar-left
or .navbar-right
utility classes. Both classes will add a CSS float in the specified direction. For example, to align nav links, put them in a separate <ul>
with the respective utility class applied.
These classes are mixin-ed versions of .pull-left
and .pull-right
, but they're scoped to media queries for easier handling of navbar components across device sizes.
Add .navbar-fixed-top
.
Or add .navbar-fixed-bottom
instead.
The fixed navbar will overlay your other content, unless you add padding
to the top of the <body>
. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.
Make sure to include this after the core Leapstrap CSS.
Create a full-width navbar that scrolls away with the page by adding .navbar-static-top
. Unlike the .navbar-fixed-*
classes, you do not need to change any padding on the body
.
Indicate the current page's location within a navigational hierarchy.
Separators are automatically added in CSS through :before
and content
. Just add CSS class leap-interactive
to make your breadcrumbs leapable.
Includes 200 glyphs in font format from the Glyphicon Halflings set. Glyphicons Halflings are normally not available for free, but their creator has made them available for Leapstrap free of cost. As a thank you, we only ask that you to include a link back to Glyphicons whenever possible.
For performance reasons, all icons require a base class and individual icon class. To use, place the following code just about anywhere. Be sure to leave a space between the icon and text for proper padding.
{% highlight html %} {% endhighlight %}Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.