material-ui
material-ui copied to clipboard
Provide IP address input component
I am wondering to know, is there any plan to add ip address input component (IPV4-separated by dot "." And IPV6)
Thanks 🙏
Search keywords:
@mohsenomidi I think its quite unlikely we'll provide a component for that, at least in the foreseeable future
Is your use-case to format the value in a TextField or something like that?
To achieve that functionality, I suggest you try integrating a library like react-imask instead
Here are our docs (TextField) about this: https://mui.com/material-ui/react-text-field/#integration-with-3rd-party-input-libraries
Thanks for your reply
This is not only about masking or validating, i'd like the user have same feeling like windows ip input.(from design and shape and also functionality when pressing dot move to next position and so on)
As I manipulated the input component in mui, I think the strategy is having only text input and handle other types of inputs even primitive ones like number input by 3rd party libraries, this is what I understand, it make difficult to handle complicated inputs or specific inputs by matching textbox with the requirements...