From 4ee28feb14bc72de3008a422a6b66f95ef6ba766 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 19 Oct 2016 00:18:47 -0700 Subject: [PATCH] More navbar example content with forms --- docs/components/navbar.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/docs/components/navbar.md b/docs/components/navbar.md index 0753b83380..ee028d2c64 100644 --- a/docs/components/navbar.md +++ b/docs/components/navbar.md @@ -28,6 +28,8 @@ Navbars come with built-in support for a handful of sub-components. Mix and matc - `.navbar-brand` for your company, product, or project name - `.navbar-nav` for a full-height and lightweight navigation (including support for dropdowns) - `.navbar-toggler` for use with our collapse plugin and other [navigation toggling](#collapsible-content) behaviors. +- Inline forms with `.float-` utilities for form controls and components. +- `.navbar-text` for adding vertically centered strings of text. Here's an example of all the sub-components included in a default, non-responsive light themed navbar. [See the responsive examples](#collapsible-content) for collapsing nav support. @@ -163,6 +165,43 @@ You may also utilize dropdowns in your navbar nav. Dropdown menus require a wrap {% endexample %} +### Forms + +Place various form controls and components within a navbar with `.form-inline`. Align them with `.float-` utilities as needed. + +{% example html %} + +{% endexample %} + +Input groups work, too: + +{% example html %} + +{% endexample %} + +Various buttons are supported as part of these navbar forms, too. This is also a great reminder that vertical alignment utilites can be used to align different sized elements. + +{% example html %} + +{% endexample %} + ### Text Navbars may contain bits of text with the help of `.navbar-text`. This class adjusts vertical alignment and horizontal spacing for strings of text.