xxxxxxxxxx
1
<div class="container my-4">
2
<p>
3
<strong
4
>You can provide an easy way to navigate through your website using side navigation component. See the examples.</strong
5
>
6
</p>
7
8
<p>
9
Detailed documentation and more examples you can find in our
10
<a
11
href="https://mdbootstrap.com/docs/standard/navigation/sidenav/"
12
target="_blank"
13
><strong>Bootstrap Sidenav Docs</strong></a
14
>
15
</p>
16
17
<hr />
18
19
<p class="font-weight-bold">Basic example</p>
20
21
<p>
22
Place the navigation on the other side by setting the <code>right</code> attribute to <code>true</code>.
23
</p>
24
25
<div class="border p-5 text-center">
26
<!-- Copy this code to have a working example -->
27
<!-- Sidenav -->
28
<nav
29
id="sidenav-1"
30
class="sidenav"
31
data-mdb-right="true"
32
data-mdb-hidden="false"
33
>
34
<ul class="sidenav-menu">
35
<li class="sidenav-item">
36
<a class="sidenav-link">
37
<i class="far fa-smile fa-fw me-3"></i><span>Link 1</span></a
38
>
39
</li>
40
<li class="sidenav-item">
41
<a class="sidenav-link"
42
><i class="fas fa-grin fa-fw me-3"></i><span>Category 1</span></a
43
>
44
<ul class="sidenav-collapse show">
45
<li class="sidenav-item">
46
<a class="sidenav-link">Link 2</a>
47
</li>
48
<li class="sidenav-item">
49
<a class="sidenav-link">Link 3</a>
50
</li>
51
</ul>
52
</li>
53
<li class="sidenav-item">
54
<a class="sidenav-link"
55
><i class="fas fa-grin-wink fa-fw me-3"></i><span>Category 2</span></a
56
>
57
<ul class="sidenav-collapse">
58
<li class="sidenav-item">
59
<a class="sidenav-link">Link 4</a>
60
</li>
61
<li class="sidenav-item">
62
<a class="sidenav-link"
63
>Link 5</a
64
>
65
</li>
66
</ul>
67
</li>
68
</ul>
69
</nav>
70
<!-- Sidenav -->
71
72
<!-- Toggler -->
73
<button
74
data-mdb-toggle="sidenav"
75
data-mdb-target="#sidenav-1"
76
class="btn btn-primary"
77
aria-controls="#sidenav-1"
78
aria-haspopup="true"
79
>
80
<i class="fas fa-bars"></i>
81
</button>
82
<!-- Toggler -->
83
<!--/ Copy this code to have a working example -->
84
</div>
85
</div>
1
1
1
1
Console errors: 0