|
| 1 | +--- |
| 2 | +{ |
| 3 | + "title": "Panels", |
| 4 | + "language": "en", |
| 5 | + "altLangPage": "panels-fr.html", |
| 6 | + "description": "Working examples of WET-BOEW Panels component", |
| 7 | + "dateModified": "2025-09-17" |
| 8 | +} |
| 9 | +--- |
| 10 | +<div class="wb-prettify all-pre"></div> |
| 11 | + |
| 12 | +<h2>Stacking options</h2> |
| 13 | +<p>Use to create various container types. A panel can be broken up into a <code>.panel</code>, <code>.panel-heading</code>, <code>.panel-title</code>, <code>panel-body</code> and <code>.panel-footer</code>. Only the <code>.panel</code> is required. All the rest are optional.</p> |
| 14 | + |
| 15 | +<div class="row"> |
| 16 | + <div class="col-sm-6 col-lg-3"> |
| 17 | + <p>Padded content:</p> |
| 18 | + <div class="panel panel-default"> |
| 19 | + <div class="panel-body"> |
| 20 | + <p>Content</p> |
| 21 | + </div> |
| 22 | + </div> |
| 23 | + </div> |
| 24 | + <div class="col-sm-6 col-lg-3"> |
| 25 | + <p>Full-width content:</p> |
| 26 | + <div class="panel panel-default"> |
| 27 | + <table class="table"> |
| 28 | + <caption class="wb-inv">Caption text</caption> |
| 29 | + <thead> |
| 30 | + <tr> |
| 31 | + <th>Table header</th> |
| 32 | + <th>Table header</th> |
| 33 | + </tr> |
| 34 | + </thead> |
| 35 | + <tbody> |
| 36 | + <tr> |
| 37 | + <td>Table data</td> |
| 38 | + <td>Table data</td> |
| 39 | + </tr> |
| 40 | + <tr> |
| 41 | + <td>Table data</td> |
| 42 | + <td>Table data</td> |
| 43 | + </tr> |
| 44 | + </tbody> |
| 45 | + </table> |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + <div class="col-sm-6 col-lg-3"> |
| 49 | + <p>Padded plus full-width content:</p> |
| 50 | + <div class="panel panel-default"> |
| 51 | + <div class="panel-body"> |
| 52 | + <p>Content</p> |
| 53 | + </div> |
| 54 | + <table class="table"> |
| 55 | + <caption class="wb-inv"> |
| 56 | + Caption text |
| 57 | + </caption> |
| 58 | + <thead> |
| 59 | + <tr> |
| 60 | + <th>Table header</th> |
| 61 | + <th>Table header</th> |
| 62 | + </tr> |
| 63 | + </thead> |
| 64 | + <tbody> |
| 65 | + <tr> |
| 66 | + <td>Table data</td> |
| 67 | + <td>Table data</td> |
| 68 | + </tr> |
| 69 | + <tr> |
| 70 | + <td>Table data</td> |
| 71 | + <td>Table data</td> |
| 72 | + </tr> |
| 73 | + </tbody> |
| 74 | + </table> |
| 75 | + </div> |
| 76 | + </div> |
| 77 | + <div class="col-sm-6 col-lg-3"> |
| 78 | + <p>Add a heading and/or footer:</p> |
| 79 | + <div class="panel panel-default"> |
| 80 | + <header class="panel-heading"> |
| 81 | + <h5 class="panel-title">Panel title</h5> |
| 82 | + </header> |
| 83 | + <div class="panel-body"> |
| 84 | + <p>Content</p> |
| 85 | + </div> |
| 86 | + <footer class="panel-footer">Panel footer</footer> |
| 87 | + </div> |
| 88 | + </div> |
| 89 | +</div> |
| 90 | + |
| 91 | +<h3>Source code</h3> |
| 92 | +<dl> |
| 93 | + <dt>Padded content:</dt> |
| 94 | + <dd><pre><code><div class="panel panel-default"> |
| 95 | + <div class="panel-body"> |
| 96 | + <p>Content</p> |
| 97 | + </div> |
| 98 | +</div></code></pre></dd> |
| 99 | + <dt>Full-width content:</dt> |
| 100 | + <dd><pre><code><div class="panel panel-default"> |
| 101 | + <table class="table"> |
| 102 | + <caption class="wb-inv">Caption text</caption> |
| 103 | + <thead> |
| 104 | + <tr> |
| 105 | + <th>Table header</th> |
| 106 | + <th>Table header</th> |
| 107 | + </tr> |
| 108 | + </thead> |
| 109 | + <tbody> |
| 110 | + <tr> |
| 111 | + <td>Table data</td> |
| 112 | + <td>Table data</td> |
| 113 | + </tr> |
| 114 | + <tr> |
| 115 | + <td>Table data</td> |
| 116 | + <td>Table data</td> |
| 117 | + </tr> |
| 118 | + </tbody> |
| 119 | + </table> |
| 120 | + </div></code></pre></dd> |
| 121 | + <dt>Padded plus full-width content:</dt> |
| 122 | + <dd><pre><code><div class="panel panel-default"> |
| 123 | + <div class="panel-body"> |
| 124 | + <p>Content</p> |
| 125 | + </div> |
| 126 | + <table class="table"> |
| 127 | + <caption class="wb-inv"> |
| 128 | + Caption text |
| 129 | + </caption> |
| 130 | + <thead> |
| 131 | + <tr> |
| 132 | + <th>Table header</th> |
| 133 | + <th>Table header</th> |
| 134 | + </tr> |
| 135 | + </thead> |
| 136 | + <tbody> |
| 137 | + <tr> |
| 138 | + <td>Table data</td> |
| 139 | + <td>Table data</td> |
| 140 | + </tr> |
| 141 | + <tr> |
| 142 | + <td>Table data</td> |
| 143 | + <td>Table data</td> |
| 144 | + </tr> |
| 145 | + </tbody> |
| 146 | + </table> |
| 147 | + </div></code></pre></dd> |
| 148 | + <dt>Add a heading and/or footer:</dt> |
| 149 | + <dd><pre><code><div class="panel panel-default"> |
| 150 | + <header class="panel-heading"> |
| 151 | + <h5 class="panel-title">Panel title</h5> |
| 152 | + </header> |
| 153 | + <div class="panel-body"> |
| 154 | + <p>Content</p> |
| 155 | + </div> |
| 156 | + <footer class="panel-footer">Panel footer</footer> |
| 157 | + </div></code></pre></dd> |
| 158 | +</dl> |
| 159 | + |
| 160 | +<h2>Panel appearences</h2> |
| 161 | +<dl> |
| 162 | + <dt>Default panel</dt> |
| 163 | + <dd><p>Use to spotlight general information/actions within a self-contained box.</p> |
| 164 | + <section class="panel panel-default mrgn-bttm-0"> |
| 165 | + <header class="panel-heading"> |
| 166 | + <h5 class="panel-title">Panel title </h5> |
| 167 | + </header> |
| 168 | + <div class="panel-body"> |
| 169 | + <p>Panel content</p> |
| 170 | + </div> |
| 171 | + </section> |
| 172 | + </dd> |
| 173 | + <dt>Primary panel</dt> |
| 174 | + <dd><p>Use to spotlight general information/actions within a self-contained box.</p> |
| 175 | + <section class="panel panel-primary mrgn-bttm-0"> |
| 176 | + <header class="panel-heading"> |
| 177 | + <h5 class="panel-title">Panel title </h5> |
| 178 | + </header> |
| 179 | + <div class="panel-body"> |
| 180 | + <p>Panel content</p> |
| 181 | + </div> |
| 182 | + </section> |
| 183 | + </dd> |
| 184 | + <dt>Success panel</dt> |
| 185 | + <dd><p>Use to spotlight correct information/actions within a self-contained box.</p> |
| 186 | + <section class="panel panel-success mrgn-bttm-0"> |
| 187 | + <header class="panel-heading"> |
| 188 | + <h5 class="panel-title">Panel title </h5> |
| 189 | + </header> |
| 190 | + <div class="panel-body"> |
| 191 | + <p>Panel content</p> |
| 192 | + </div> |
| 193 | + </section> |
| 194 | + </dd> |
| 195 | + <dt>Info panel</dt> |
| 196 | + <dd><p>Use to spotlight specialized information/actions within a self-contained box.</p> |
| 197 | + <section class="panel panel-info mrgn-bttm-0"> |
| 198 | + <header class="panel-heading"> |
| 199 | + <h5 class="panel-title">Panel title </h5> |
| 200 | + </header> |
| 201 | + <div class="panel-body"> |
| 202 | + <p>Panel content</p> |
| 203 | + </div> |
| 204 | + </section> |
| 205 | + </dd> |
| 206 | + <dt>Warning panel</dt> |
| 207 | + <dd><p>Use to spotlight warning information/actions within a self-contained box.</p> |
| 208 | + <section class="panel panel-warning mrgn-bttm-0"> |
| 209 | + <header class="panel-heading"> |
| 210 | + <h5 class="panel-title">Panel title </h5> |
| 211 | + </header> |
| 212 | + <div class="panel-body"> |
| 213 | + <p>Panel content</p> |
| 214 | + </div> |
| 215 | + </section> |
| 216 | + </dd> |
| 217 | + <dt>Danger panel</dt> |
| 218 | + <dd><p>Use to spotlight dangerous information/actions within a self-contained box.</p> |
| 219 | + <section class="panel panel-danger mrgn-bttm-0"> |
| 220 | + <header class="panel-heading"> |
| 221 | + <h5 class="panel-title">Panel title </h5> |
| 222 | + </header> |
| 223 | + <div class="panel-body"> |
| 224 | + <p>Panel content</p> |
| 225 | + </div> |
| 226 | + </section> |
| 227 | + </dd> |
| 228 | +</dl> |
| 229 | + |
| 230 | +<h3>Source code</h3> |
| 231 | +<pre><code></code></pre> |
| 232 | + |
| 233 | +<h2>Reference</h2> |
| 234 | +<p><a href="https://wet-boew.github.io/wet-boew-styleguide/design/panels-en">Web Experience Toolkit Style Guide - Panels</a></p> |
0 commit comments