Files
react-test/docs/data/joy/components/list/DividedList.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

41 lines
1.4 KiB
TypeScript

import Avatar from '@mui/joy/Avatar';
import Box from '@mui/joy/Box';
import List from '@mui/joy/List';
import ListDivider from '@mui/joy/ListDivider';
import ListItem from '@mui/joy/ListItem';
import ListItemDecorator from '@mui/joy/ListItemDecorator';
import Typography from '@mui/joy/Typography';
export default function DividedList() {
return (
<Box
sx={{ display: 'flex', flexWrap: 'wrap', justifyContent: 'center', gap: 4 }}
>
{([undefined, 'gutter', 'startDecorator', 'startContent'] as const).map(
(inset) => (
<div key={inset || 'default'}>
<Typography level="body-xs" sx={{ mb: 2 }}>
<code>{inset ? `inset="${inset}"` : '(default)'}</code>
</Typography>
<List variant="outlined" sx={{ minWidth: 240, borderRadius: 'sm' }}>
<ListItem>
<ListItemDecorator>
<Avatar size="sm" src="/static/images/avatar/1.jpg" />
</ListItemDecorator>
Mabel Boyle
</ListItem>
<ListDivider inset={inset} />
<ListItem>
<ListItemDecorator>
<Avatar size="sm" src="/static/images/avatar/2.jpg" />
</ListItemDecorator>
Boyd Burt
</ListItem>
</List>
</div>
),
)}
</Box>
);
}