Skip to main content

Table

Displays your information sorted in tables.

Structure

  • table: Container tag
    • thead: Table header (optional)
    • tbody: Table body
      • tr: Table row
        • th: Header cell
        • td: General cell

Basic Usage

IDNombreApellido
1MarioBross
2LuigiBross
3KoopaTroopa
4DonkeyKong
5PrincesaPeach
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>Nombre</th>
<th>Apellido</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mario</td>
<td>Bross</td>
</tr>
<tr>
<td>2</td>
<td>Luigi</td>
<td>Bross</td>
</tr>
<tr>
<td>3</td>
<td>Koopa</td>
<td>Troopa</td>
</tr>
<tr>
<td>4</td>
<td>Donkey</td>
<td>Kong</td>
</tr>
<tr>
<td>5</td>
<td>Princesa</td>
<td>Peach</td>
</tr>
</tbody>
</table>

Bordered

Displays a table with all elements bordered using the is-bordered class along with the table class.

IDNombreApellido
1MarioBross
2LuigiBross
3KoopaTroopa
4DonkeyKong
5PrincesaPeach

Striped

To display odd rows with a neutral color, use the is-striped class.

IDNombreApellido
1MarioBross
2LuigiBross
3KoopaTroopa
4DonkeyKong
5PrincesaPeach

Colors

To display the striped rows with another color, use the is-{COLOR} class, where COLOR is one of the color values. For more information, visit the color customization documentation.

color: primary
IDNombreApellido
1MarioBross
2LuigiBross
3KoopaTroopa
4DonkeyKong
5PrincesaPeach
color: error
IDNombreApellido
1MarioBross
2LuigiBross
3KoopaTroopa
4DonkeyKong
5PrincesaPeach

Highlight on Hover

To display a neutral color when hovering over a row, you can use the is-hoverable class along with the table class.

IDNombreApellido
1MarioBross
2LuigiBross
3KoopaTroopa
4DonkeyKong
5PrincesaPeach

Colors

To display the row with another color on hover, use the is-{COLOR} class, where COLOR is one of the color values. For more information, visit the color customization documentation.

IDNombreApellido
1MarioBross
2LuigiBross
3KoopaTroopa
4DonkeyKong
5PrincesaPeach

Sizes

Displays tables with different paddings using the is-sm, is-md (default), and is-lg classes along with the table class.

size: sm
IDNombreApellido
1MarioBross
2LuigiBross
size: md
IDNombreApellido
1MarioBross
2LuigiBross
size: lg
IDNombreApellido
1MarioBross
2LuigiBross

Responsive Table

If you want the table to have a horizontal scroll, you need to add a container with the table-responsive class.

HeaderHeaderHeaderHeaderHeaderHeaderHeaderHeaderHeaderHeaderHeaderHeaderHeaderHeaderHeaderHeaderHeaderHeaderHeaderHeader
Cell 1Cell 2Cell 3Cell 4Cell 5Cell 6Cell 7Cell 8Cell 9Cell 10Cell 11Cell 12Cell 13Cell 14Cell 15Cell 16Cell 17Cell 18Cell 19Cell 20
Cell 1Cell 2Cell 3Cell 4Cell 5Cell 6Cell 7Cell 8Cell 9Cell 10Cell 11Cell 12Cell 13Cell 14Cell 15Cell 16Cell 17Cell 18Cell 19Cell 20
Cell 1Cell 2Cell 3Cell 4Cell 5Cell 6Cell 7Cell 8Cell 9Cell 10Cell 11Cell 12Cell 13Cell 14Cell 15Cell 16Cell 17Cell 18Cell 19Cell 20