List
Provide basic styled list, but it also can be extended to display complex content.
Basic
- 1. Active
- 2. Dapibus ac facilisis in
- 3. Morbi leo risus
- 4. Disabled
- 5. Vestibulum at eros
<ul class="list">
<li class="list__item">1. Active</li>
<li class="list__item">2. Dapibus ac facilisis in</li>
<li class="list__item">3. Morbi leo risus</li>
<li class="list__item">4. Disabled</li>
<li class="list__item">5. Vestibulum at eros</li>
</ul>
Inset
By adding the .list--inset
modifier class on .list
container to create a inset list, so you can use it as inner content of other components.
- 1. Active
- 2. Dapibus ac facilisis in
- 3. Morbi leo risus
- 4. Disabled
- 5. Vestibulum at eros
<ul class="list list--inset">
<li class="list__item">1. Active</li>
<li class="list__item">2. Dapibus ac facilisis in</li>
<li class="list__item">3. Morbi leo risus</li>
<li class="list__item">4. Disabled</li>
<li class="list__item">5. Vestibulum at eros</li>
</ul>
- 1. Active
- 2. Dapibus ac facilisis in
- 3. Morbi leo risus
- 4. Disabled
- 5. Vestibulum at eros
<div class="box">
<header class="box__header">List in Box</header>
<div class="box__body">
<ul class="list list--inset mb-0">
<li class="list__item">1. Active</li>
<li class="list__item">2. Dapibus ac facilisis in</li>
<li class="list__item">3. Morbi leo risus</li>
<li class="list__item">4. Disabled</li>
<li class="list__item">5. Vestibulum at eros</li>
</ul>
</div>
</div>
Bordered
By adding the .list--bordered
modifier class on .list
container, you can easily create a borderd list style or remove all borders by adding the .list--borderless
modifier class.
- 1. Active
- 2. Dapibus ac facilisis in
- 3. Morbi leo risus
- 4. Disabled
- 5. Vestibulum at eros
<ul class="list list--bordered">
<li class="list__item">1. Active</li>
<li class="list__item">2. Dapibus ac facilisis in</li>
<li class="list__item">3. Morbi leo risus</li>
<li class="list__item">4. Disabled</li>
<li class="list__item">5. Vestibulum at eros</li>
</ul>
By adding the .list--borderless
modifier clas on .list
container to remove any borders.
- 1. Active
- 2. Dapibus ac facilisis in
- 3. Morbi leo risus
- 4. Disabled
- 5. Vestibulum at eros
<ul class="list list--borderless">
<li class="list__item">1. Active</li>
<li class="list__item">2. Dapibus ac facilisis in</li>
<li class="list__item">3. Morbi leo risus</li>
<li class="list__item">4. Disabled</li>
<li class="list__item">5. Vestibulum at eros</li>
</ul>
Linked
To quick create linkify list by using <a>
tag and child .list__link
class.
<div class="list list--bordered list--lg">
<a class="list__link">1. Dapibus ac facilisis in</a>
<a class="list__link is-active">2. Active</a>
<a class="list__link">3. Morbi leo risus</a>
<a class="list__link">4. Disabled</a>
<a class="list__link">5. Vestibulum at eros</a>
</div>
Sizing
Use .list--sm
, .list--lg
modifier classes on .list
container to change size
Small
- 1. Active
- 2. Dapibus ac facilisis in
- 3. Morbi leo risus
- 4. Disabled
- 5. Vestibulum at eros
<ul class="list list--bordered list--sm">
<li class="list__item">1. Active</li>
<li class="list__item">2. Dapibus ac facilisis in</li>
<li class="list__item">3. Morbi leo risus</li>
<li class="list__item is-disabled">4. Disabled</li>
<li class="list__item">5. Vestibulum at eros</li>
</ul>
Large
- 1. Active
- 2. Dapibus ac facilisis in
- 3. Morbi leo risus
- 4. Disabled
- 5. Vestibulum at eros
<ul class="list list--bordered list--lg">
<li class="list__item">1. Active</li>
<li class="list__item">2. Dapibus ac facilisis in</li>
<li class="list__item">3. Morbi leo risus</li>
<li class="list__item">4. Disabled</li>
<li class="list__item">5. Vestibulum at eros</li>
</ul>