@@ -11,8 +11,25 @@ import Section from 'docs/src/layouts/Section';
11
11
import AppFooter from 'docs/src/layouts/AppFooter' ;
12
12
import GitHubIcon from '@mui/icons-material/GitHub' ;
13
13
import { Link } from '@mui/docs/Link' ;
14
+ import FormControl from '@mui/material/FormControl' ;
15
+ import InputLabel from '@mui/material/InputLabel' ;
16
+ import Select , { SelectChangeEvent } from '@mui/material/Select' ;
17
+ import MenuItem from '@mui/material/MenuItem' ;
18
+ import Checkbox from '@mui/material/Checkbox' ;
19
+ import Card from '@mui/material/Card' ;
20
+ import CardActions from '@mui/material/CardActions' ;
21
+ import CardContent from '@mui/material/CardContent' ;
22
+ import CardMedia from '@mui/material/CardMedia' ;
23
+ import Typography from '@mui/material/Typography' ;
24
+
25
+ const label = { inputProps : { 'aria-label' : 'Checkbox demo' } } ;
14
26
15
27
export default function BrandingThemeTest ( ) {
28
+ const [ age , setAge ] = React . useState ( '' ) ;
29
+
30
+ const handleChange = ( event : SelectChangeEvent ) => {
31
+ setAge ( event . target . value as string ) ;
32
+ } ;
16
33
return (
17
34
< BrandingCssVarsProvider >
18
35
< Head title = "MUI Branding Theme Test" description = "" />
@@ -63,6 +80,116 @@ export default function BrandingThemeTest() {
63
80
< GitHubIcon fontSize = "small" />
64
81
</ IconButton >
65
82
</ Stack >
83
+ < Stack direction = "column" spacing = { 2 } useFlexGap sx = { { width : 'fit-content' , mt : 8 } } >
84
+ < Button variant = "contained" size = "large" color = "primary" >
85
+ Large
86
+ </ Button >
87
+ < Button variant = "contained" size = "medium" color = "primary" >
88
+ Medium
89
+ </ Button >
90
+ < Button variant = "contained" size = "small" color = "primary" >
91
+ Small
92
+ </ Button >
93
+ </ Stack >
94
+ < Stack direction = "row" spacing = { 2 } useFlexGap sx = { { width : 'fit-content' , mt : 8 } } >
95
+ < FormControl sx = { { width : 120 } } >
96
+ < InputLabel id = "demo-simple-select-label" > Age</ InputLabel >
97
+ < Select
98
+ labelId = "demo-simple-select-label"
99
+ id = "demo-simple-select"
100
+ value = { age }
101
+ label = "Age"
102
+ onChange = { handleChange }
103
+ >
104
+ < MenuItem value = { 10 } > Ten</ MenuItem >
105
+ < MenuItem value = { 20 } > Twenty</ MenuItem >
106
+ < MenuItem value = { 30 } > Thirty</ MenuItem >
107
+ </ Select >
108
+ </ FormControl >
109
+ < FormControl sx = { { width : 120 } } >
110
+ < InputLabel id = "demo-simple-select-label" > Age</ InputLabel >
111
+ < Select
112
+ labelId = "demo-simple-select-label"
113
+ id = "demo-simple-select"
114
+ value = { age }
115
+ label = "Age"
116
+ size = "small"
117
+ onChange = { handleChange }
118
+ >
119
+ < MenuItem value = { 10 } > Ten</ MenuItem >
120
+ < MenuItem value = { 20 } > Twenty</ MenuItem >
121
+ < MenuItem value = { 30 } > Thirty</ MenuItem >
122
+ </ Select >
123
+ </ FormControl >
124
+ </ Stack >
125
+ < Stack direction = "row" spacing = { 2 } useFlexGap sx = { { width : 'fit-content' , mt : 8 } } >
126
+ < Checkbox { ...label } defaultChecked />
127
+ < Checkbox { ...label } />
128
+ < Checkbox { ...label } disabled />
129
+ < Checkbox { ...label } disabled checked />
130
+ </ Stack >
131
+ < Stack direction = "row" spacing = { 2 } useFlexGap sx = { { width : 'fit-content' , mt : 8 } } >
132
+ < Card sx = { { maxWidth : 345 } } >
133
+ < CardMedia
134
+ sx = { { height : 140 } }
135
+ image = "/static/images/cards/contemplative-reptile.jpg"
136
+ title = "green iguana"
137
+ />
138
+ < CardContent >
139
+ < Typography gutterBottom variant = "h6" >
140
+ Lizard
141
+ </ Typography >
142
+ < Typography variant = "body2" >
143
+ Lizards are a widespread group of squamate reptiles, with over 6,000 species,
144
+ ranging across all continents except Antarctica
145
+ </ Typography >
146
+ </ CardContent >
147
+ < CardActions >
148
+ < Button size = "small" > Share</ Button >
149
+ < Button size = "small" > Learn More</ Button >
150
+ </ CardActions >
151
+ </ Card >
152
+ < Card variant = "elevation" sx = { { maxWidth : 345 } } >
153
+ < CardMedia
154
+ sx = { { height : 140 } }
155
+ image = "/static/images/cards/contemplative-reptile.jpg"
156
+ title = "green iguana"
157
+ />
158
+ < CardContent >
159
+ < Typography gutterBottom variant = "h6" >
160
+ Lizard
161
+ </ Typography >
162
+ < Typography variant = "body2" >
163
+ Lizards are a widespread group of squamate reptiles, with over 6,000 species,
164
+ ranging across all continents except Antarctica
165
+ </ Typography >
166
+ </ CardContent >
167
+ < CardActions >
168
+ < Button size = "small" > Share</ Button >
169
+ < Button size = "small" > Learn More</ Button >
170
+ </ CardActions >
171
+ </ Card >
172
+ < Card variant = "outlined" sx = { { maxWidth : 345 } } >
173
+ < CardMedia
174
+ sx = { { height : 140 } }
175
+ image = "/static/images/cards/contemplative-reptile.jpg"
176
+ title = "green iguana"
177
+ />
178
+ < CardContent >
179
+ < Typography gutterBottom variant = "h6" >
180
+ Lizard
181
+ </ Typography >
182
+ < Typography variant = "body2" >
183
+ Lizards are a widespread group of squamate reptiles, with over 6,000 species,
184
+ ranging across all continents except Antarctica
185
+ </ Typography >
186
+ </ CardContent >
187
+ < CardActions >
188
+ < Button size = "small" > Share</ Button >
189
+ < Button size = "small" > Learn More</ Button >
190
+ </ CardActions >
191
+ </ Card >
192
+ </ Stack >
66
193
</ Section >
67
194
< Divider />
68
195
</ main >
0 commit comments