Simple typescript error that won't allow Table.Head to accept a single child. MDN specifies that the table head pattern should look like table > thead > tr > th, but Table.Head expects only an array of children.
Also, the story for pinned columns doesn't actually use Table.Head, it uses raw HTML instead. I'm not sure if there was a reason for this, but I'd expect to be able to use the react components here in the same pattern eg.
<Table>
<Table.Head>
<Table.Row>
<th>Pinned Header</th>
<th>Header</th>
<th>Header</th>
<th>Header</th>
</Table.Row>
<Table.Body>
<Table.Row>
<td>data</td>
<td>data</td>
<td>data</td>
<td>data</td>
<Table.Row>
</Table.Body>
</Table.Head>
</Table>
^ this doesn't work, you have to replace Table.Head with the plain html thead instead.
Simple typescript error that won't allow Table.Head to accept a single child. MDN specifies that the table head pattern should look like table > thead > tr > th, but Table.Head expects only an array of children.
Also, the story for pinned columns doesn't actually use Table.Head, it uses raw HTML instead. I'm not sure if there was a reason for this, but I'd expect to be able to use the react components here in the same pattern eg.
^ this doesn't work, you have to replace Table.Head with the plain html thead instead.