Files
react-test/docs/data/joy/components/table/TableVariables.js
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

52 lines
1.2 KiB
JavaScript

import Table from '@mui/joy/Table';
import Sheet from '@mui/joy/Sheet';
import JoyVariablesDemo from 'docs/src/modules/components/JoyVariablesDemo';
export default function TableVariables() {
return (
<JoyVariablesDemo
componentName="Table"
data={[
{
var: '--Table-headerUnderlineThickness',
defaultValue: '2px',
},
{
var: '--TableCell-height',
defaultValue: '40px',
},
{
var: '--TableCell-paddingX',
defaultValue: '8px',
},
{
var: '--TableCell-paddingY',
defaultValue: '6px',
},
]}
renderDemo={(sx) => (
<Sheet variant="outlined" sx={{ width: 300, boxShadow: 'sm' }}>
<Table borderAxis="bothBetween" sx={sx}>
<thead>
<tr>
<th>Name</th>
<th style={{ width: '60%' }}>Role</th>
</tr>
</thead>
<tbody>
<tr>
<td>Adam</td>
<td>Developer</td>
</tr>
<tr>
<td>Joseph</td>
<td>Manager</td>
</tr>
</tbody>
</Table>
</Sheet>
)}
/>
);
}