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
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
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'].map((size) => (
|
|
<Button key={size} size={size} startDecorator={<Person />}>
|
|
Button
|
|
</Button>
|
|
))}
|
|
</Stack>
|
|
<Stack spacing={2}>
|
|
{['sm', 'md', 'lg'].map((size) => (
|
|
<Input
|
|
key={size}
|
|
size={size}
|
|
startDecorator={<Person />}
|
|
placeholder="Placeholder"
|
|
/>
|
|
))}
|
|
</Stack>
|
|
<Stack spacing={2}>
|
|
{['sm', 'md', 'lg', 'xl'].map((size) => (
|
|
<Typography key={size} startDecorator={<Person />} sx={{ fontSize: size }}>
|
|
Hello World
|
|
</Typography>
|
|
))}
|
|
</Stack>
|
|
</Box>
|
|
);
|
|
}
|