28 lines
591 B
JavaScript
28 lines
591 B
JavaScript
|
|
import * as React from 'react';
|
||
|
|
import Box from '@mui/material/Box';
|
||
|
|
import Link from '@mui/material/Link';
|
||
|
|
|
||
|
|
const preventDefault = (event) => event.preventDefault();
|
||
|
|
|
||
|
|
export default function Links() {
|
||
|
|
return (
|
||
|
|
<Box
|
||
|
|
sx={{
|
||
|
|
typography: 'body1',
|
||
|
|
'& > :not(style) ~ :not(style)': {
|
||
|
|
ml: 2,
|
||
|
|
},
|
||
|
|
}}
|
||
|
|
onClick={preventDefault}
|
||
|
|
>
|
||
|
|
<Link href="#">Link</Link>
|
||
|
|
<Link href="#" color="inherit">
|
||
|
|
{'color="inherit"'}
|
||
|
|
</Link>
|
||
|
|
<Link href="#" variant="body2">
|
||
|
|
{'variant="body2"'}
|
||
|
|
</Link>
|
||
|
|
</Box>
|
||
|
|
);
|
||
|
|
}
|