-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
234fca6
commit fb9afbb
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import * as React from 'react'; | ||
import Stack from '@mui/material/Stack'; | ||
import Md2FilledInput from '@mui/material/FilledInput'; | ||
import { ThemeProvider, createTheme } from '@mui/material/styles'; | ||
import FilledInput from '@mui/material-next/FilledInput'; | ||
import { CssVarsProvider, extendTheme } from '@mui/material-next/styles'; | ||
|
||
const md2Theme = createTheme(); | ||
|
||
const md3Theme = extendTheme(); | ||
|
||
export default function MaterialYouInputs() { | ||
return ( | ||
<Stack spacing={4}> | ||
<ThemeProvider theme={md2Theme}> | ||
<pre>MD2</pre> | ||
<Stack display="inline-flex" direction="row" gap={4}> | ||
<Md2FilledInput defaultValue="primary" color="primary" /> | ||
<Md2FilledInput defaultValue="secondary" color="secondary" /> | ||
</Stack> | ||
</ThemeProvider> | ||
<CssVarsProvider theme={md3Theme}> | ||
<pre>MD3</pre> | ||
<Stack display="inline-flex" direction="row" gap={4}> | ||
<FilledInput defaultValue="primary" color="primary" /> | ||
<FilledInput defaultValue="secondary" color="secondary" /> | ||
</Stack> | ||
</CssVarsProvider> | ||
</Stack> | ||
); | ||
} |