Skip to content

Commit 4e6ee25

Browse files
[docs][TextField] Removed type="number" demos (#46314)
Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
1 parent 3939e18 commit 4e6ee25

File tree

3 files changed

+1
-65
lines changed

3 files changed

+1
-65
lines changed

docs/data/material/components/text-fields/FormPropsTextFields.js

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@ export default function FormPropsTextFields() {
3939
},
4040
}}
4141
/>
42-
<TextField
43-
id="outlined-number"
44-
label="Number"
45-
type="number"
46-
slotProps={{
47-
inputLabel: {
48-
shrink: true,
49-
},
50-
}}
51-
/>
5242
<TextField id="outlined-search" label="Search field" type="search" />
5343
<TextField
5444
id="outlined-helperText"
@@ -90,17 +80,6 @@ export default function FormPropsTextFields() {
9080
},
9181
}}
9282
/>
93-
<TextField
94-
id="filled-number"
95-
label="Number"
96-
type="number"
97-
variant="filled"
98-
slotProps={{
99-
inputLabel: {
100-
shrink: true,
101-
},
102-
}}
103-
/>
10483
<TextField
10584
id="filled-search"
10685
label="Search field"
@@ -148,17 +127,6 @@ export default function FormPropsTextFields() {
148127
},
149128
}}
150129
/>
151-
<TextField
152-
id="standard-number"
153-
label="Number"
154-
type="number"
155-
variant="standard"
156-
slotProps={{
157-
inputLabel: {
158-
shrink: true,
159-
},
160-
}}
161-
/>
162130
<TextField
163131
id="standard-search"
164132
label="Search field"

docs/data/material/components/text-fields/FormPropsTextFields.tsx

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@ export default function FormPropsTextFields() {
3939
},
4040
}}
4141
/>
42-
<TextField
43-
id="outlined-number"
44-
label="Number"
45-
type="number"
46-
slotProps={{
47-
inputLabel: {
48-
shrink: true,
49-
},
50-
}}
51-
/>
5242
<TextField id="outlined-search" label="Search field" type="search" />
5343
<TextField
5444
id="outlined-helperText"
@@ -90,17 +80,6 @@ export default function FormPropsTextFields() {
9080
},
9181
}}
9282
/>
93-
<TextField
94-
id="filled-number"
95-
label="Number"
96-
type="number"
97-
variant="filled"
98-
slotProps={{
99-
inputLabel: {
100-
shrink: true,
101-
},
102-
}}
103-
/>
10483
<TextField
10584
id="filled-search"
10685
label="Search field"
@@ -148,17 +127,6 @@ export default function FormPropsTextFields() {
148127
},
149128
}}
150129
/>
151-
<TextField
152-
id="standard-number"
153-
label="Number"
154-
type="number"
155-
variant="standard"
156-
slotProps={{
157-
inputLabel: {
158-
shrink: true,
159-
},
160-
}}
161-
/>
162130
<TextField
163131
id="standard-search"
164132
label="Search field"

docs/data/material/components/text-fields/text-fields.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export default function App() {
266266

267267
The input label "shrink" state isn't always correct.
268268
The input label is supposed to shrink as soon as the input is displaying something.
269-
In some circumstances, we can't determine the "shrink" state (number input, datetime input, Stripe input). You might notice an overlap.
269+
In some circumstances, we can't determine the "shrink" state (datetime input, Stripe input). You might notice an overlap.
270270

271271
![shrink](/static/images/text-fields/shrink.png)
272272

0 commit comments

Comments
 (0)