$ bower install gaia-components/gaia-list
gaia-list provide semantic based declaration and class based declaration.
You can use <hx>
as main text, use p
or small
as description.
Or you can add gaia-item-title
class to denote the element is the main text, add gaia-item-desc
class to denote the element is the description.
Semantic
<gaia-list>
<a>
<i data-icon="brightness"></i>
<h3 flex>Menu 1</h3>
<i data-icon="forward-light"></i>
</a>
</gaia-list>
class based
<gaia-list>
<a>
<i data-icon="brightness"></i>
<div class="gaia-item-title" flex>Menu 1</div>
<i data-icon="forward-light"></i>
</a>
</gaia-list>
<gaia-list>
<li class="ripple">
<label flex flexbox for="wifi-switch">
<i data-icon="wifi-4"></i>
<h3>Wifi</h3>
</label>
<gaia-switch id="wifi-switch" class="divided"></gaia-switch>
</li>
</gaia-list>
<gaia-list>
<a>
<div>
<h3>Noah Green</h3>
<p>Atsara Kitchens</p>
<div class="face"></div>
</div>
</a>
</gaia-list>
<gaia-list>
<a class="unread">
<div>
<h3>Will Gordan</h3>
<p>Send photos please!</p>
<p>You're the best, thank you so much for all</p>
<time>11:30AM</time>
</div>
</a>
<a>
<div>
<h3>Michael Stanford</h3>
<p>You might like this or not?</p>
<p>Great find, I definitely check with Brian if</p>
<time>11:30AM</time>
</div>
</a>
</gaia-list>
Put ripple
in class list will force trigger the ripple effect.
Put a
href in content will trigger the ripple effect automatically.
Put no-ripple
in class list will force NOT trigger the ripple effect.
Defines the element as a display: flex
.
Expands element to fill available space flex: 1
Run lint check with command:
$ npm run lint