Skip to content

Commit 977352b

Browse files
committed
Add Links
1 parent 1b740e2 commit 977352b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

test/integration/next/pages/mui.tsx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ import StepLabel from '@mui/material/StepLabel';
4545

4646
import { DataGrid, GridColDef, GridValueGetterParams } from '@mui/x-data-grid';
4747

48+
import Link from '@mui/material/Link';
49+
50+
4851

4952
const { MuiDsfrThemeProvider } = createMuiDsfrThemeProvider({
5053
"augmentMuiTheme": noAugmentation
@@ -93,6 +96,7 @@ export default function Mui() {
9396
<BadgeVisibility />
9497
<HorizontalLinearStepper />
9598
<DataGridDemo />
99+
<Links />
96100
</>
97101
);
98102

@@ -638,3 +642,35 @@ const { DataGridDemo } = (() => {
638642

639643

640644
})();
645+
646+
const { Links } = (() => {
647+
648+
649+
const preventDefault = (event: React.SyntheticEvent) => event.preventDefault();
650+
651+
function Links() {
652+
return (
653+
<Box
654+
sx={{
655+
typography: 'body1',
656+
'& > :not(style) + :not(style)': {
657+
ml: 2,
658+
},
659+
"mt": 7
660+
}}
661+
onClick={preventDefault}
662+
>
663+
<Link href="#">Link</Link>
664+
<Link href="#" color="inherit">
665+
{'color="inherit"'}
666+
</Link>
667+
<Link href="#" variant="body2">
668+
{'variant="body2"'}
669+
</Link>
670+
</Box>
671+
);
672+
}
673+
674+
return { Links };
675+
676+
})();

0 commit comments

Comments
 (0)