Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

<gaia-list> devDependency Status

Installation

$ bower install gaia-components/gaia-list

Examples

Usage

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.

Settings style list

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>

List with switch and divider

<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>

Contacts style list

<gaia-list>
  <a>
    <div>
      <h3>Noah Green</h3>
      <p>Atsara Kitchens</p>
      <div class="face"></div>
    </div>
  </a>
</gaia-list>

Email style list (with time stamp)

<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>

ripple

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.

flexbox

Defines the element as a display: flex.

flex

Expands element to fill available space flex: 1

Lint check

Run lint check with command:

$ npm run lint

You can’t perform that action at this time.