|
@@ -696,7 +696,7 @@ doc-subtab: form
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
- <h3 class="title">Form addons</h3>
|
|
|
+ <h3 id="form-addons" class="title">Form addons</h3>
|
|
|
<div class="content">
|
|
|
<p>If you want to <strong>attach</strong> controls together, use the <code>has-addons</code> modifier on the <code>control</code> container:</p>
|
|
|
</div>
|
|
@@ -720,6 +720,37 @@ doc-subtab: form
|
|
|
{% endhighlight %}
|
|
|
<div class="content">
|
|
|
<p>You can attach inputs, buttons, and dropdowns <strong>only</strong>.</p>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <p style="margin-bottom: 0.5rem;">
|
|
|
+ <span class="tag is-success">New!</span>
|
|
|
+ <span class="tag is-info">0.4.2</span>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <div class="content">
|
|
|
+ <p>It can be useful to append a <a href="{{site.url}}/documentation/elements/button#static-button">static button</a>.</p>
|
|
|
+ </div>
|
|
|
+
|
|
|
+{% capture addons_static_example %}
|
|
|
+<div class="field has-addons">
|
|
|
+ <p class="control">
|
|
|
+ <input class="input" type="text" placeholder="Your email">
|
|
|
+ </p>
|
|
|
+ <p class="control">
|
|
|
+ <a class="button is-static">
|
|
|
+ @gmail.com
|
|
|
+ </a>
|
|
|
+ </p>
|
|
|
+</div>
|
|
|
+{% endcapture %}
|
|
|
+ <div class="example">
|
|
|
+{{addons_static_example}}
|
|
|
+ </div>
|
|
|
+{% highlight html %}
|
|
|
+{{addons_static_example}}
|
|
|
+{% endhighlight %}
|
|
|
+
|
|
|
+ <div class="content">
|
|
|
<p>Use the <code>is-expanded</code> modifier on the element you want to fill up the remaining space (in this case, the input):</p>
|
|
|
</div>
|
|
|
{% capture addons_expanded_example %}
|