Examples for opt-in styling of tables.
# | First Name | Last Name | Position | Phone |
---|---|---|---|---|
1 | John | Doe | CEO, Founder | +3 555 68 70 |
2 | Anna | Cabana | Designer | +3 434 65 93 |
3 | Kale | Thornton | Developer | +3 285 42 88 |
4 | Jane | Birkins | Support | +3 774 28 50 |
import Table from 'react-bootstrap/Table'
{/* Basic responsive table */}
<Table responsive>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Position</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<th scope='row'>1</th>
<td>John</td>
<td>Doe</td>
<td>CEO, Founder</td>
<td>+3 555 68 70</td>
</tr>
<tr>
<th scope='row'>2</th>
<td>Anna</td>
<td>Cabana</td>
<td>Designer</td>
<td>+3 434 65 93</td>
</tr>
<tr>
<th scope='row'>3</th>
<td>Kale</td>
<td>Thornton</td>
<td>Developer</td>
<td>+3 285 42 88</td>
</tr>
<tr>
<th scope='row'>4</th>
<td>Jane</td>
<td>Birkins</td>
<td>Support</td>
<td>+3 774 28 50</td>
</tr>
</tbody>
</Table>
# | First Name | Last Name | Position | Phone |
---|---|---|---|---|
1 | John | Doe | CEO, Founder | +3 555 68 70 |
2 | Anna | Cabana | Designer | +3 434 65 93 |
3 | Kale | Thornton | Developer | +3 285 42 88 |
4 | Jane | Birkins | Support | +3 774 28 50 |
import Table from 'react-bootstrap/Table'
{/* Dark responsive table */}
<Table responsive variant='dark'>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Position</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<th scope='row'>1</th>
<td>John</td>
<td>Doe</td>
<td>CEO, Founder</td>
<td>+3 555 68 70</td>
</tr>
<tr>
<th scope='row'>2</th>
<td>Anna</td>
<td>Cabana</td>
<td>Designer</td>
<td>+3 434 65 93</td>
</tr>
<tr>
<th scope='row'>3</th>
<td>Kale</td>
<td>Thornton</td>
<td>Developer</td>
<td>+3 285 42 88</td>
</tr>
<tr>
<th scope='row'>4</th>
<td>Jane</td>
<td>Birkins</td>
<td>Support</td>
<td>+3 774 28 50</td>
</tr>
</tbody>
</Table>
# | First Name | Last Name | Position | Phone |
---|---|---|---|---|
1 | John | Doe | CEO, Founder | +3 555 68 70 |
2 | Anna | Cabana | Designer | +3 434 65 93 |
3 | Kale | Thornton | Developer | +3 285 42 88 |
4 | Jane | Birkins | Support | +3 774 28 50 |
import Table from 'react-bootstrap/Table'
{/* Small responsive table */}
<Table responsive size='sm'>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Position</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<th scope='row'>1</th>
<td>John</td>
<td>Doe</td>
<td>CEO, Founder</td>
<td>+3 555 68 70</td>
</tr>
<tr>
<th scope='row'>2</th>
<td>Anna</td>
<td>Cabana</td>
<td>Designer</td>
<td>+3 434 65 93</td>
</tr>
<tr>
<th scope='row'>3</th>
<td>Kale</td>
<td>Thornton</td>
<td>Developer</td>
<td>+3 285 42 88</td>
</tr>
<tr>
<th scope='row'>4</th>
<td>Jane</td>
<td>Birkins</td>
<td>Support</td>
<td>+3 774 28 50</td>
</tr>
</tbody>
</Table>
# | First Name | Last Name | Position | Phone |
---|---|---|---|---|
1 | John | Doe | CEO, Founder | +3 555 68 70 |
2 | Anna | Cabana | Designer | +3 434 65 93 |
3 | Kale | Thornton | Developer | +3 285 42 88 |
# | First Name | Last Name | Position | Phone |
---|---|---|---|---|
1 | John | Doe | CEO, Founder | +3 555 68 70 |
2 | Anna | Cabana | Designer | +3 434 65 93 |
3 | Kale | Thornton | Developer | +3 285 42 88 |
import Table from 'react-bootstrap/Table'
{/* Light table with striped rows */}
<Table responsive striped>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Position</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<th scope='row'>1</th>
<td>John</td>
<td>Doe</td>
<td>CEO, Founder</td>
<td>+3 555 68 70</td>
</tr>
<tr>
<th scope='row'>2</th>
<td>Anna</td>
<td>Cabana</td>
<td>Designer</td>
<td>+3 434 65 93</td>
</tr>
<tr>
<th scope='row'>3</th>
<td>Kale</td>
<td>Thornton</td>
<td>Developer</td>
<td>+3 285 42 88</td>
</tr>
</tbody>
</Table>
{/* Dark table with striped rows */}
<Table responsive striped variant='dark'>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Position</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<th scope='row'>1</th>
<td>John</td>
<td>Doe</td>
<td>CEO, Founder</td>
<td>+3 555 68 70</td>
</tr>
<tr>
<th scope='row'>2</th>
<td>Anna</td>
<td>Cabana</td>
<td>Designer</td>
<td>+3 434 65 93</td>
</tr>
<tr>
<th scope='row'>3</th>
<td>Kale</td>
<td>Thornton</td>
<td>Developer</td>
<td>+3 285 42 88</td>
</tr>
</tbody>
</Table>
# | First Name | Last Name | Position | Phone |
---|---|---|---|---|
1 | John | Doe | CEO, Founder | +3 555 68 70 |
2 | Anna | Cabana | Designer | +3 434 65 93 |
3 | Kale | Thornton | Developer | +3 285 42 88 |
# | First Name | Last Name | Position | Phone |
---|---|---|---|---|
1 | John | Doe | CEO, Founder | +3 555 68 70 |
2 | Anna | Cabana | Designer | +3 434 65 93 |
3 | Kale | Thornton | Developer | +3 285 42 88 |
# | First Name | Last Name | Position | Phone |
---|---|---|---|---|
1 | John | Doe | CEO, Founder | +3 555 68 70 |
2 | Anna | Cabana | Designer | +3 434 65 93 |
3 | Kale | Thornton | Developer | +3 285 42 88 |
import Table from 'react-bootstrap/Table'
{/* Light bordered table */}
<Table responsive bordered>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Position</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<th scope='row'>1</th>
<td>John</td>
<td>Doe</td>
<td>CEO, Founder</td>
<td>+3 555 68 70</td>
</tr>
<tr>
<th scope='row'>2</th>
<td>Anna</td>
<td>Cabana</td>
<td>Designer</td>
<td>+3 434 65 93</td>
</tr>
<tr>
<th scope='row'>3</th>
<td>Kale</td>
<td>Thornton</td>
<td>Developer</td>
<td>+3 285 42 88</td>
</tr>
</tbody>
</Table>
{/* Dark bordered table */}
<Table responsive bordered variant='dark'>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Position</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<th scope='row'>1</th>
<td>John</td>
<td>Doe</td>
<td>CEO, Founder</td>
<td>+3 555 68 70</td>
</tr>
<tr>
<th scope='row'>2</th>
<td>Anna</td>
<td>Cabana</td>
<td>Designer</td>
<td>+3 434 65 93</td>
</tr>
<tr>
<th scope='row'>3</th>
<td>Kale</td>
<td>Thornton</td>
<td>Developer</td>
<td>+3 285 42 88</td>
</tr>
</tbody>
</Table>
{/* Table with color border. Supports all theme colors */}
<Table responsive bordered className='border-primary'>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Position</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<th scope='row'>1</th>
<td>John</td>
<td>Doe</td>
<td>CEO, Founder</td>
<td>+3 555 68 70</td>
</tr>
<tr>
<th scope='row'>2</th>
<td>Anna</td>
<td>Cabana</td>
<td>Designer</td>
<td>+3 434 65 93</td>
</tr>
<tr>
<th scope='row'>3</th>
<td>Kale</td>
<td>Thornton</td>
<td>Developer</td>
<td>+3 285 42 88</td>
</tr>
</tbody>
</Table>
# | First Name | Last Name | Position | Phone |
---|---|---|---|---|
1 | John | Doe | CEO, Founder | +3 555 68 70 |
2 | Anna | Cabana | Designer | +3 434 65 93 |
3 | Kale | Thornton | Developer | +3 285 42 88 |
# | First Name | Last Name | Position | Phone |
---|---|---|---|---|
1 | John | Doe | CEO, Founder | +3 555 68 70 |
2 | Anna | Cabana | Designer | +3 434 65 93 |
3 | Kale | Thornton | Developer | +3 285 42 88 |
import Table from 'react-bootstrap/Table'
{/* Light table with hoverable rows */}
<Table responsive hover>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Position</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<th scope='row'>1</th>
<td>John</td>
<td>Doe</td>
<td>CEO, Founder</td>
<td>+3 555 68 70</td>
</tr>
<tr>
<th scope='row'>2</th>
<td>Anna</td>
<td>Cabana</td>
<td>Designer</td>
<td>+3 434 65 93</td>
</tr>
<tr>
<th scope='row'>3</th>
<td>Kale</td>
<td>Thornton</td>
<td>Developer</td>
<td>+3 285 42 88</td>
</tr>
</tbody>
</Table>
{/* Dark table with hoverable rows */}
<Table responsive hover variant='dark'>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Position</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<th scope='row'>1</th>
<td>John</td>
<td>Doe</td>
<td>CEO, Founder</td>
<td>+3 555 68 70</td>
</tr>
<tr>
<th scope='row'>2</th>
<td>Anna</td>
<td>Cabana</td>
<td>Designer</td>
<td>+3 434 65 93</td>
</tr>
<tr>
<th scope='row'>3</th>
<td>Kale</td>
<td>Thornton</td>
<td>Developer</td>
<td>+3 285 42 88</td>
</tr>
</tbody>
</Table>
# | Class | Heading | Heading |
---|---|---|---|
1 | Active | Column content | Column content |
2 | Default | Column content | Column content |
3 | Primary | Column content | Column content |
4 | Default | Column content | Column content |
5 | Accent | Column content | Column content |
6 | Default | Column content | Column content |
7 | Secondary | Column content | Column content |
8 | Default | Column content | Column content |
9 | Success | Column content | Column content |
10 | Default | Column content | Column content |
11 | Info | Column content | Column content |
12 | Default | Column content | Column content |
13 | Warning | Column content | Column content |
14 | Default | Column content | Column content |
15 | Danger | Column content | Column content |
import Table from 'react-bootstrap/Table'
{/* Table with contextual colored rows */}
<Table responsive>
<thead>
<tr>
<th>#</th>
<th>Class</th>
<th>Heading</th>
<th>Heading</th>
</tr>
</thead>
<tbody>
<tr className='table-active'>
<th scope='row'>1</th>
<td>Active</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr className='table-primary'>
<th scope='row'>2</th>
<td>Primary</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr className='table-accent'>
<th scope='row'>3</th>
<td>Accent</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr className='table-secondary'>
<th scope='row'>4</th>
<td>Secondary</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr className='table-success'>
<th scope='row'>5</th>
<td>Success</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr className='table-info'>
<th scope='row'>6</th>
<td>Info</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr className='table-warning'>
<th scope='row'>7</th>
<td>Warning</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr className='table-danger'>
<th scope='row'>8</th>
<td>Danger</td>
<td>Column content</td>
<td>Column content</td>
</tr>
</tbody>
</Table>