]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add input group example with btns on both sides for completeness+testing 18264/head
authorChris Rebert <code@chrisrebert.com>
Sun, 15 Nov 2015 22:15:34 +0000 (14:15 -0800)
committerChris Rebert <code@chrisrebert.com>
Sun, 15 Nov 2015 22:15:36 +0000 (14:15 -0800)
[skip sauce]

docs/components/input-group.md

index 1b3a71545053691ca11bcd22b858626becdf0889..870e89fee443d223cc1af01920021ece46193a5d 100644 (file)
@@ -108,6 +108,20 @@ Buttons in input groups are a bit different and require one extra level of nesti
     </div>
   </div>
 </div>
+<br>
+<div class="row">
+  <div class="col-lg-offset-3 col-lg-6">
+    <div class="input-group">
+      <span class="input-group-btn">
+        <button class="btn btn-secondary" type="button">Hate it</button>
+      </span>
+      <input type="text" class="form-control" placeholder="Product name">
+      <span class="input-group-btn">
+        <button class="btn btn-secondary" type="button">Love it</button>
+      </span>
+    </div>
+  </div>
+</div>
 {% endexample %}
 
 ## Buttons with dropdowns