1
1
import * as React from 'react' ;
2
- import Grid from '@mui/material/GridLegacy ' ;
2
+ import Grid from '@mui/material/Grid ' ;
3
3
import FormControl from '@mui/material/FormControl' ;
4
4
import FormLabel from '@mui/material/FormLabel' ;
5
5
import FormControlLabel from '@mui/material/FormControlLabel' ;
@@ -91,9 +91,9 @@ function ChipsPlayground() {
91
91
92
92
return (
93
93
< Grid container sx = { { flexGrow : 1 } } >
94
- < Grid item xs = { 12 } >
94
+ < Grid size = { 12 } >
95
95
< Grid container sx = { { justifyContent : 'center' , alignItems : 'center' } } >
96
- < Grid item sx = { ( theme ) => ( { height : theme . spacing ( 10 ) } ) } >
96
+ < Grid sx = { ( theme ) => ( { height : theme . spacing ( 10 ) } ) } >
97
97
< Chip
98
98
label = "Chip Component"
99
99
color = { color }
@@ -107,9 +107,14 @@ function ChipsPlayground() {
107
107
</ Grid >
108
108
</ Grid >
109
109
</ Grid >
110
- < Grid item xs = { 12 } >
110
+ < Grid size = { 12 } >
111
111
< Grid container spacing = { 3 } >
112
- < Grid item xs = { 12 } md = { 6 } >
112
+ < Grid
113
+ size = { {
114
+ xs : 12 ,
115
+ md : 6 ,
116
+ } }
117
+ >
113
118
< FormControl component = "fieldset" >
114
119
< FormLabel > variant</ FormLabel >
115
120
< RadioGroup
@@ -132,7 +137,12 @@ function ChipsPlayground() {
132
137
</ RadioGroup >
133
138
</ FormControl >
134
139
</ Grid >
135
- < Grid item xs = { 12 } md = { 6 } >
140
+ < Grid
141
+ size = { {
142
+ xs : 12 ,
143
+ md : 6 ,
144
+ } }
145
+ >
136
146
< FormControl component = "fieldset" >
137
147
< FormLabel > color</ FormLabel >
138
148
< RadioGroup
@@ -172,7 +182,12 @@ function ChipsPlayground() {
172
182
</ RadioGroup >
173
183
</ FormControl >
174
184
</ Grid >
175
- < Grid item xs = { 12 } md = { 6 } >
185
+ < Grid
186
+ size = { {
187
+ xs : 12 ,
188
+ md : 6 ,
189
+ } }
190
+ >
176
191
< FormControl component = "fieldset" >
177
192
< FormLabel > size</ FormLabel >
178
193
< RadioGroup
@@ -191,7 +206,12 @@ function ChipsPlayground() {
191
206
</ RadioGroup >
192
207
</ FormControl >
193
208
</ Grid >
194
- < Grid item xs = { 12 } md = { 6 } >
209
+ < Grid
210
+ size = { {
211
+ xs : 12 ,
212
+ md : 6 ,
213
+ } }
214
+ >
195
215
< FormControl component = "fieldset" >
196
216
< FormLabel > icon</ FormLabel >
197
217
< RadioGroup
@@ -206,7 +226,12 @@ function ChipsPlayground() {
206
226
</ RadioGroup >
207
227
</ FormControl >
208
228
</ Grid >
209
- < Grid item xs = { 12 } md = { 6 } >
229
+ < Grid
230
+ size = { {
231
+ xs : 12 ,
232
+ md : 6 ,
233
+ } }
234
+ >
210
235
< FormControl component = "fieldset" >
211
236
< FormLabel > avatar</ FormLabel >
212
237
< RadioGroup
@@ -226,7 +251,12 @@ function ChipsPlayground() {
226
251
</ RadioGroup >
227
252
</ FormControl >
228
253
</ Grid >
229
- < Grid item xs = { 12 } md = { 6 } >
254
+ < Grid
255
+ size = { {
256
+ xs : 12 ,
257
+ md : 6 ,
258
+ } }
259
+ >
230
260
< FormControl component = "fieldset" >
231
261
< FormLabel > onDelete</ FormLabel >
232
262
< RadioGroup
@@ -252,7 +282,7 @@ function ChipsPlayground() {
252
282
</ Grid >
253
283
</ Grid >
254
284
</ Grid >
255
- < Grid item xs = { 12 } >
285
+ < Grid size = { 12 } >
256
286
< HighlightedCode code = { jsx } language = "jsx" />
257
287
</ Grid >
258
288
</ Grid >
0 commit comments