diff --git a/docs/components/list-group.md b/docs/components/list-group.md index 90c3a68ed4..6324032f53 100644 --- a/docs/components/list-group.md +++ b/docs/components/list-group.md @@ -3,23 +3,12 @@ layout: page title: List group --- -
-

List group

+List groups are a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content. -

List groups are a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content.

+

Basic example

+

The most basic list group is simply an unordered list with list items, and the proper classes. Build upon it with the options that follow, or your own CSS as needed.

-

Basic example

-

The most basic list group is simply an unordered list with list items, and the proper classes. Build upon it with the options that follow, or your own CSS as needed.

-
- -
-{% highlight html %} +{% example html %} -{% endhighlight %} +{% endexample %} -

Badges

-

Add the badges component to any list group item and it will automatically be positioned on the right.

-
- -
-{% highlight html %} +### Badges + +Add the badges component to any list group item and it will automatically be positioned on the right. + +{% example html %} -{% endhighlight %} +{% endexample %} -

Linked items

-

Linkify list group items by using anchor tags instead of list items (that also means a parent <div> instead of an <ul>). No need for individual parents around each element.

-
- -
-{% highlight html %} +### Linked items + +Linkify list group items by using anchor tags instead of list items (that also means a parent `
` instead of an `
-{% endhighlight %} +{% endexample %} -

Custom content

-

Add nearly any HTML within, even for linked list groups like the one below.

-
- -
-{% highlight html %} +### Custom content + +Add nearly any HTML within, even for linked list groups like the one below. + +{% example html %}

List group item heading

-

...

+

Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.

+
+ +

List group item heading

+

Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.

+
+ +

List group item heading

+

Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.

-{% endhighlight %}
+{% endexample %}