| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 1 | Table cell 2 | Table cell 3 |
| Table cell 4 | Table cell 5 | Table cell 6 |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Table caption="This is a test table">2 <Thead>3 <Tr>4 <Th scope="col">Column 1</Th>5 <Th scope="col">Column 2</Th>6 <Th scope="col">Column 3</Th>7 </Tr>8 </Thead>9 <Tbody>10 <Tr>11 <Td>Table cell 1</Td>12 <Td>Table cell 2</Td>13 <Td>Table cell 3</Td>14 </Tr>15 <Tr>16 <Td>Table cell 4</Td>17 <Td>Table cell 5</Td>18 <Td>Table cell 6</Td>19 </Tr>20 <Tr>21 <Td>Table cell 7</Td>22 <Td>Table cell 8</Td>23 <Td>Table cell 9</Td>24 </Tr>25 </Tbody>26 <Tfoot>27 <Tr>28 <Td colSpan="3">This is the table footer.</Td>29 </Tr>30 </Tfoot>31</Table>
Column 1 | Column 2 | Column 3 |
|---|---|---|
Table cell 1 | Table cell 2 | Table cell 3 |
Table cell 4 | Table cell 5 | Table cell 6 |
Table cell 7 | Table cell 8 | Table cell 9 |
This is the table footer. | ||
1<Table caption="This is a test table" variation="outlined">2 ...3</Table>
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 1 | Table cell 2 | Table cell 3 |
| Table cell 4 | Table cell 5 | Table cell 6 |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Table caption="This is a test table" variation="secondary">2 ...3</Table>
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 1 | Table cell 2 | Table cell 3 |
| Table cell 4 | Table cell 5 | Table cell 6 |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Table caption="This is a test table" variation="no-style">2 ...3</Table>
This is not available for the outlined style
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 1 | Table cell 2 | Table cell 3 |
| Table cell 4 | Table cell 5 | Table cell 6 |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Table caption="This is a test table" bordered>2 ...3</Table>
This is not available for the outlined style
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 1 | Table cell 2 | Table cell 3 |
| Table cell 4 | Table cell 5 | Table cell 6 |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Thead bordered>2 <Tr>3 <Th scope="col">Column 1</Th>4 <Th scope="col">Column 2</Th>5 <Th scope="col">Column 3</Th>6 </Tr>7</Thead>8<Tbody>9 ...10</Tbody>11<Tfoot bordered>12 <Tr>13 <Td colSpan="3">This is the table footer.</Td>14 </Tr>15</Tfoot>
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 1 | Table cell 2 | Table cell 3 |
| Table cell 4 | Table cell 5 | Table cell 6 |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Table caption="This is a test table" striped>2 ...3</Table>
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 1 | Table cell 2 | Table cell 3 |
| Table cell 4 | Table cell 5 | Table cell 6 |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Table caption="This is a test table" hover>2 ...3</Table>
By defeault all tables will operate in a responsive way whereby if the table width exceeds the parent container a horizontal scroll bar is applied. This responsiveOff props turns off this effect.
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 1 | Table cell 2 | Table cell 3 |
| Table cell 4 | Table cell 5 | Table cell 6 |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Table caption="This is a test table" responsiveOff>2 ...3</Table>
| Column 2 | Column 3 | |
|---|---|---|
| Table cell 2 | Table cell 3 | |
| Table cell 5 | Table cell 6 | |
| Table cell 8 | Table cell 9 | |
| This is the table footer. | ||
1<Thead>2 <Tr>3 <Th scope="col"><Checkbox size="small" id="checkbox-all" labelHidden onChange={() => {}}>Select all CONTEXT rows</Checkbox></Th>4 <Th scope="col">Column 2</Th>5 <Th scope="col">Column 3</Th>6 </Tr>7</Thead>8<Tbody>9 <Tr>10 <Td><Checkbox size="small" id="checkbox-1" labelHidden onChange={() => {}}>Select CONTEXT</Checkbox></Td>11 <Td>Table cell 2</Td>12 <Td>Table cell 3</Td>13 </Tr>14 <Tr>15 <Td><Checkbox size="small" id="checkbox-2" labelHidden onChange={() => {}}>Select CONTEXT</Checkbox></Td>16 <Td>Table cell 5</Td>17 <Td>Table cell 6</Td>18 </Tr>19 <Tr>20 <Td><Checkbox size="small" id="checkbox-3" labelHidden onChange={() => {}}>Select CONTEXT</Checkbox></Td>21 <Td>Table cell 8</Td>22 <Td>Table cell 9</Td>23 </Tr>24</Tbody>
| Select booking | Column 2 | Column 3 |
|---|---|---|
| Table cell 2 | Table cell 3 | |
| Table cell 5 | Table cell 6 | |
| Table cell 8 | Table cell 9 | |
| This is the table footer. | ||
1<Thead>2 <Tr>3 <Th scope="col"><span className="vh">Select booking</span></Th>4 <Th scope="col">Column 2</Th>5 <Th scope="col">Column 3</Th>6 </Tr>7</Thead>8<Tbody>9 <Tr>10 <Td><Radio size="small" id="radio-1" name="booking-selection" onChange={() => {}} labelHidden>Radio context here</Radio></Td>11 <Td>Table cell 2</Td>12 <Td>Table cell 3</Td>13 </Tr>14 <Tr>15 <Td><Radio size="small" id="radio-2" name="booking-selection" onChange={() => {}} labelHidden>Radio context here</Radio></Td>16 <Td>Table cell 5</Td>17 <Td>Table cell 6</Td>18 </Tr>19 <Tr>20 <Td><Radio size="small" id="radio-3" name="booking-selection" onChange={() => {}} labelHidden>Radio context here</Radio></Td>21 <Td>Table cell 8</Td>22 <Td>Table cell 9</Td>23 </Tr>24</Tbody>
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 2 | Table cell 3 | |
| Table cell 5 | Table cell 6 | |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Table caption="This is a test table" size="small">2 ...3</Table>
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 2 | Table cell 3 | |
| Table cell 5 | Table cell 6 | |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Table caption="This is a test table">2 ...3</Table>
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 2 | Table cell 3 | |
| Table cell 5 | Table cell 6 | |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Table caption="This is a test table" size="large">2 ...3</Table>
Widths should be applied in the thead row.
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 1 | Table cell 2 | Table cell 3 |
| Table cell 4 | Table cell 5 | Table cell 6 |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Thead>2 <Tr>3 <Th scope="col" width="50%">Column 1</Th>4 <Th scope="col" width="20%">Column 2</Th>5 <Th scope="col" width="30%">Column 3</Th>6 </Tr>7</Thead>
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 1 | Table cell 2 | Table cell 3 |
| Table cell 4 | Table cell 5 | Table cell 6 |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Thead>2 <Tr>3 <Th scope="col">Column 1</Th>4 <Th scope="col">Column 2</Th>5 <Th scope="col">Column 3</Th>6 </Tr>7</Thead>8<Tbody>9 <Tr>10 <Td background="primary">Table cell 1</Td>11 <Td>Table cell 2</Td>12 <Td>Table cell 3</Td>13 </Tr>14 <Tr>15 <Td>Table cell 4</Td>16 <Td background="secondary">Table cell 5</Td>17 <Td>Table cell 6</Td>18 </Tr>19 <Tr>20 <Td>Table cell 7</Td>21 <Td background="tertiary">Table cell 8</Td>22 <Td>Table cell 9</Td>23 </Tr>24</Tbody>
The display of cells can be used to show or hide table cells in responsive displays.
| Table cell 1 | Table cell 2 | Table cell 3 | Table cell 4 | Table cell 5 | Table cell 6 |
| Table cell 7 | Table cell 8 | Table cell 9 | Table cell 10 | Table cell 11 | |
| Table cell 12 | Table cell 13 | Piggy | |||
| Table cell 14 | Table cell 15 | Table cell 16 | Table cell 17 | Table cell 18 | |
| Table cell 19 | Table cell 20 | Table cell 21 | Table cell 22 | ||
1<Table caption="this is a test table" variation="no-style">2<Thead>3<Tr>4 <Td background="secondary">Table cell 1</Td>5 <Td background="tertiary">Table cell 2</Td>6 <Td>Table cell 3</Td>7 <Td>Table cell 4</Td>8 <Td background="secondary">Table cell 5</Td>9 <Td background="tertiary">Table cell 6</Td>10</Tr>11</Thead>12<Tbody>13 <Tr>14 <Td colSpan="2">Table cell 7</Td>15 <Td>Table cell 8</Td>16 <Td background="secondary">Table cell 9</Td>17 <Td background="tertiary">Table cell 10</Td>18 <Td>Table cell 11</Td>19 </Tr>20 <Tr>21 <Td colSpan="4">Table cell 12</Td>22 <Td rowSpan="3" background="secondary">Table cell 13</Td>23 <Td background="tertiary">Piggy</Td>24 </Tr>25 <Tr>26 <Td rowSpan="2">Table cell 14</Td>27 <Td>Table cell 15</Td>28 <Td background="tertiary">Table cell 16</Td>29 <Td background="secondary">Table cell 17</Td>30 <Td>Table cell 18</Td>31 </Tr>32 <Tr>33 <Td background="tertiary">Table cell 19</Td>34 <Td background="secondary">Table cell 20</Td>35 <Td background="tertiary">Table cell 21</Td>36 <Td>Table cell 22</Td>37 </Tr>38 </Tbody>39</Table>
The thead must always be rendered within the code and when hidden must only be visually hidden to maintain semantics for all users.
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 1 | Table cell 2 | Table cell 3 |
| Table cell 4 | Table cell 5 | Table cell 6 |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Thead className="vh">2 <Tr>3 <Th scope="col">Column 1</Th>4 <Th scope="col">Column 2</Th>5 <Th scope="col">Column 3</Th>6 </Tr>7</Thead>
The display of cells can be used to show or hide table cells in responsive displays.
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Table cell 1 | Table cell 2 | Table cell 3 |
| Table cell 4 | Table cell 5 | Table cell 6 |
| Table cell 7 | Table cell 8 | Table cell 9 |
| This is the table footer. | ||
1<Tr>2 <Td>Table cell 1</Td>3 <Td display="none">Table cell 2</Td>4 <Td>Table cell 3</Td>5</Tr>