This commit is contained in:
Jeremy Thomas
2017-09-18 23:33:19 +01:00
parent f89cca4c50
commit 63bac2c775
6 changed files with 122 additions and 9 deletions

View File

@@ -117,6 +117,12 @@ doc-subtab: textarea
</div>
{% endcapture %}
{% capture readonly_example %}
<div class="control">
<textarea class="textarea" type="text" readonly>This content is readonly</textarea>
</div>
{% endcapture %}
{% include subnav-form.html %}
<section class="section">
@@ -198,5 +204,20 @@ doc-subtab: textarea
{% include snippet.html content=disabled_example %}
<h4 class="subtitle">Readonly</h4>
<div class="tags has-addons">
<span class="tag">New</span>
<span class="tag is-info">0.5.3</span>
</div>
<div class="content">
<p>
If you use the <code>readonly</code> HTML attribute, the textarea will look similar to a normal one, but is not editable and has no shadow.
</p>
</div>
{% include snippet.html content=readonly_example %}
</div>
</section>