Files
react-test/docs/data/joy/integrations/icon-libraries/JoyMaterialIcon.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

38 lines
1.1 KiB
TypeScript

import Box from '@mui/joy/Box';
import Button from '@mui/joy/Button';
import Input from '@mui/joy/Input';
import Typography from '@mui/joy/Typography';
import Stack from '@mui/joy/Stack';
import Person from '@mui/icons-material/Person';
export default function JoyMaterialIcon() {
return (
<Box sx={{ display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: 2 }}>
<Stack spacing={2}>
{(['sm', 'md', 'lg'] as const).map((size) => (
<Button key={size} size={size} startDecorator={<Person />}>
Button
</Button>
))}
</Stack>
<Stack spacing={2}>
{(['sm', 'md', 'lg'] as const).map((size) => (
<Input
key={size}
size={size}
startDecorator={<Person />}
placeholder="Placeholder"
/>
))}
</Stack>
<Stack spacing={2}>
{(['sm', 'md', 'lg', 'xl'] as const).map((size) => (
<Typography key={size} startDecorator={<Person />} sx={{ fontSize: size }}>
Hello World
</Typography>
))}
</Stack>
</Box>
);
}