--- layout: default title: Components slug: components lead: "Reusable components to built the user interface." base_url: "../" ---
Navmenu is a vertical navigation component. By default it shares it look and feel with the navmenu component.
The navmenu is 300px wide by default. You can change this by customizing the @navmenu-width
variable or by setting the width of .navmenu
in your CSS.
Be sure to add a role="navigation"
to every navmenu to help with accessibility.
Add either .navmenu-fixed-left
or .navmenu-fixed-right
.
The fixed navmenu will overlay your other content, unless you add padding
to the left or right of the <body>
. Try out your own values or use our snippet below. Tip: By default, the navmenu is 300px wide.
Make sure to include this after the Jasny Bootstrap CSS.
With the offcanvas plugin, you can hide the navmenu off canvas. This is especially useful for screens with a small viewport.
{% highlight html %} {% endhighlight %}There is a full example for an off canvas push menu as well as examples for an off canvas navmenu with an slide in and reveal effect.
Modify the look of the navmenu by adding .navmenu-inverse
.
Add .alert-fixed-top
top stick the alert on top of your page. Use .alert-fixed-bottom
for the bottom.