File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
test/integration/next/pages Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ import StepLabel from '@mui/material/StepLabel';
4545
4646import { DataGrid , GridColDef , GridValueGetterParams } from '@mui/x-data-grid' ;
4747
48+ import Link from '@mui/material/Link' ;
49+
50+
4851
4952const { 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+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments