vui-list
This component contains SASS mixins and CSS that you can use to style lists.
There are three styles of lists.
With Separators | Without Separators | Compact |
---|---|---|
Installation
vui-list
can be installed from Bower:
bower install vui-list
Or alternatively from NPM:
npm install vui-list
Depending on which installation method you choose, use that path when doing the SASS import:
;;// or... ;;
Usage
A list can be either a <ol>
or <ul>
HTML element containing any number of <li>
elements. The default list style is with separators.
HTML:
Gold Silver Bronze
SCSS:
ol
To style a list with no separators or a compact list, add the appropriate mixin.
HTML:
First Unseparated Item Last Unseparated Item Compact Item A Compact Item B
ol ul
To style an individual list item as active, selected, or both, add the appropriate mixin to the list item.
HTML:
Gold Silver Bronze
SCSS:
.selected .active .selected-active
For further information on this component and other VUI components, see the docs at ui.valence.d2l.com.
Coding styles
See the VUI Best Practices & Style Guide for information on VUI naming conventions, plus information about the EditorConfig rules used in this repo.