Chips
Chips can be used to represent small blocks of information. They are most commonly used either for contacts or for tags.
Basic
HTML
CSS
<div class="chip">HTML</div>
Tags
To create a tag chip just add an close icon inside.
Material close
Responsive close
<div class="chip"> Material <i class="close material-icons">close</i></div>
Contacts
To create a contact chip just add an img inside.
Jane Doe
<div class="chip"> <img src="assets/images/profile-image-1.png" alt="Contact Person"> Jane Doe</div>
Javascript Plugin Usage
To add tags, just enter your tag text and press enter. You can delete them by clicking on the close icon or by using your delete button.
Set initial tags.
Use placeholders and override hint texts.
<div class="chips"></div><div class="chips chips-initial"></div><div class="chips chips-placeholder"></div>
$('.chips').material_chip();$('.chips-initial').material_chip({ data: [{ tag: 'Apple', }, { tag: 'Microsoft', }, { tag: 'Google', }], });$('.chips-placeholder').material_chip({ placeholder: 'Enter a tag', secondaryPlaceholder: '+Tag',});