mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-14 10:13:09 +00:00
add icons example
This commit is contained in:
parent
1ac720ee54
commit
c6287eb347
2 changed files with 57 additions and 0 deletions
|
|
@ -258,6 +258,62 @@
|
|||
</div>
|
||||
</example-box>
|
||||
|
||||
<example-box card-title="Icons">
|
||||
<div slot="demo">
|
||||
<form novalidate @submit.stop.prevent="submit">
|
||||
<md-input-container>
|
||||
<md-icon class="md-warn">
|
||||
warning
|
||||
<md-tooltip>Be careful. You're almost broken!</md-tooltip>
|
||||
</md-icon>
|
||||
<label>Money</label>
|
||||
<md-input type="text"></md-input>
|
||||
<md-icon>attach_money</md-icon>
|
||||
</md-input-container>
|
||||
|
||||
<md-input-container>
|
||||
<md-icon>phone</md-icon>
|
||||
<label>Phone</label>
|
||||
<md-input type="tel"></md-input>
|
||||
</md-input-container>
|
||||
|
||||
<md-input-container>
|
||||
<md-icon>speaker_notes</md-icon>
|
||||
<label>Notes</label>
|
||||
<md-textarea></md-textarea>
|
||||
</md-input-container>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div slot="code">
|
||||
<code-block lang="xml">
|
||||
<form novalidate @submit.stop.prevent="submit">
|
||||
<md-input-container>
|
||||
<md-icon class="md-warn">
|
||||
warning
|
||||
<md-tooltip>Be careful. You're almost broken!</md-tooltip>
|
||||
</md-icon>
|
||||
<label>Money</label>
|
||||
<md-input type="text"></md-input>
|
||||
<md-icon>attach_money</md-icon>
|
||||
</md-input-container>
|
||||
|
||||
<md-input-container>
|
||||
<md-icon>phone</md-icon>
|
||||
<label>Phone</label>
|
||||
<md-input type="tel"></md-input>
|
||||
</md-input-container>
|
||||
|
||||
<md-input-container>
|
||||
<md-icon>speaker_notes</md-icon>
|
||||
<label>Notes</label>
|
||||
<md-textarea></md-textarea>
|
||||
</md-input-container>
|
||||
</form>
|
||||
</code-block>
|
||||
</div>
|
||||
</example-box>
|
||||
|
||||
<example-box card-title="Required and Errors">
|
||||
<div slot="demo">
|
||||
<form novalidate @submit.stop.prevent="submit">
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@ $input-size: 32px;
|
|||
}
|
||||
|
||||
.md-icon {
|
||||
margin: 4px auto;
|
||||
color: rgba(#000, .54);
|
||||
transition: $swift-ease-out;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue