Files
react-test/docs/data/joy/components/table/BasicTable.tsx
how2ice 005cf56baf
Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
init project
2025-12-12 14:26:25 +09:00

55 lines
1.1 KiB
TypeScript

import Table from '@mui/joy/Table';
export default function BasicTable() {
return (
<Table aria-label="basic table">
<thead>
<tr>
<th style={{ width: '40%' }}>Dessert (100g serving)</th>
<th>Calories</th>
<th>Fat&nbsp;(g)</th>
<th>Carbs&nbsp;(g)</th>
<th>Protein&nbsp;(g)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Frozen yoghurt</td>
<td>159</td>
<td>6</td>
<td>24</td>
<td>4</td>
</tr>
<tr>
<td>Ice cream sandwich</td>
<td>237</td>
<td>9</td>
<td>37</td>
<td>4.3</td>
</tr>
<tr>
<td>Eclair</td>
<td>262</td>
<td>16</td>
<td>24</td>
<td>6</td>
</tr>
<tr>
<td>Cupcake</td>
<td>305</td>
<td>3.7</td>
<td>67</td>
<td>4.3</td>
</tr>
<tr>
<td>Gingerbread</td>
<td>356</td>
<td>16</td>
<td>49</td>
<td>3.9</td>
</tr>
</tbody>
</Table>
);
}