Skip to content

Commit

Permalink
Add readonly state and help text #16
Browse files Browse the repository at this point in the history
  • Loading branch information
katbow committed Jun 2, 2017
1 parent dcc2700 commit 1fa0530
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions components/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,21 @@ <h4>Disable fieldsets</h4>
</label>
</div>
</fieldset>

<h3>Read only state</h3>
<p class="mt0 f6 fw6 silver">EXAMPLE</p>
<form class="w-100 mt2">
<input type="text" class="pa2 br2 b--black-20 bg-black-10 f6 w-100" placeholder="Readonly input here..." readonly>
</form>

<h3>Help text</h3>
<p class="mt0 f6 fw6 silver">EXAMPLE</p>
<div class="mv3">
<label for="inputHelpBlock" class="fw7 f6">Email</label>
<input type="text" class="db w-100 pa2 mt2 br2 b--black-20 f6" id="inputHelpBlock" aria-describedby="helpBlock">
<p id="helpBlock" class="f6 black-60 mt3">
A block of help text that breaks onto a new line and may extend beyond
one line.
</p>
</div>
</article>

0 comments on commit 1fa0530

Please sign in to comment.