Skip to content

Commit

Permalink
docs(textarea): update samples
Browse files Browse the repository at this point in the history
- Added placeholders for textarea samples (enable floating labels);
- Added new sample for textarea with custom placeholder.
  • Loading branch information
mauromascarenhas committed Jun 23, 2023
1 parent 76b7cbb commit f967529
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions pug/contents/text_inputs_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -319,21 +319,33 @@ <h3 class="header">Textarea</h3>
<form class="col s12">
<div class="row">
<div class="input-field col s12">
<textarea id="textarea1" class="materialize-textarea"></textarea>
<textarea id="textarea1" class="materialize-textarea" placeholder=" "></textarea>
<label for="textarea1">Textarea</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<textarea id="textarea2" class="materialize-textarea" placeholder="A custom placeholder :)"></textarea>
<label for="textarea2">Textarea with placeholder</label>
</div>
</div>
</form>
</div>
<pre><code class="language-markup">
&lt;div class="row">
&lt;form class="col s12">
&lt;div class="row">
&lt;div class="input-field col s12">
&lt;textarea id="textarea1" class="materialize-textarea">&lt;/textarea>
&lt;textarea id="textarea1" class="materialize-textarea" placeholder=" ">&lt;/textarea>
&lt;label for="textarea1">Textarea&lt;/label>
&lt;/div>
&lt;/div>
&lt;div class="row">
&lt;div class="input-field col s12">
&lt;textarea id="textarea2" class="materialize-textarea" placeholder="A custom placeholder :)">&lt;/textarea>
&lt;label for="textarea2">Textarea with placeholder&lt;/label>
&lt;/div>
&lt;/div>
&lt;/form>
&lt;/div>
</code></pre>
Expand All @@ -351,7 +363,7 @@ <h5>Icon Prefixes</h5>
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">mode_edit</i>
<textarea id="icon_prefix2" class="materialize-textarea"></textarea>
<textarea id="icon_prefix2" class="materialize-textarea" placeholder=" "></textarea>
<label for="icon_prefix2">Message</label>
</div>
</div>
Expand Down Expand Up @@ -444,13 +456,13 @@ <h3 class="header">Character Counter</h3>
<form class="col s12">
<div class="row">
<div class="input-field col s6">
<input id="input_text" type="text" maxlength="10">
<input id="input_text" type="text" maxlength="10" placeholder=" ">
<label for="input_text">Input text</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<textarea id="textarea2" class="materialize-textarea" maxlength="120"></textarea>
<textarea id="textarea2" class="materialize-textarea" maxlength="120" placeholder=" "></textarea>
<label for="textarea2">Textarea</label>
</div>
</div>
Expand All @@ -461,13 +473,13 @@ <h3 class="header">Character Counter</h3>
&lt;form class="col s12">
&lt;div class="row">
&lt;div class="input-field col s6">
&lt;input id="input_text" type="text" maxlength="10">
&lt;input id="input_text" type="text" maxlength="10" placeholder=" ">
&lt;label for="input_text">Input text&lt;/label>
&lt;/div>
&lt;/div>
&lt;div class="row">
&lt;div class="input-field col s12">
&lt;textarea id="textarea2" class="materialize-textarea" maxlength="120">&lt;/textarea>
&lt;textarea id="textarea2" class="materialize-textarea" maxlength="120" placeholder=" ">&lt;/textarea>
&lt;label for="textarea2">Textarea&lt;/label>
&lt;/div>
&lt;/div>
Expand Down

0 comments on commit f967529

Please sign in to comment.