reactjs - set min max in mui textfield type="number" using the slotprops mui v6 - Stack Overflow

i'm trying to set a min max for the textfield component but i didn't find a documentation abo

i'm trying to set a min max for the textfield component but i didn't find a documentation about the slotProps api

<TextField
                    fullWidth
                    label="Discount %"
                    value={amount}
                    type="number"
                    slotProps={{
                      input: {min: 0, max:100 },
                      htmlInput: { min: 0, max: 100},
                    }}
                    
                  />

Note: InputProps got deprecated.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745613191a4636073.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信