material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

Provide IP address input component

Open mohsenomidi opened this issue 9 months ago • 3 comments

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 avatar May 13 '24 18:05 mohsenomidi

@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

mj12albert avatar May 14 '24 01:05 mj12albert

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)

mohsenomidi avatar May 16 '24 05:05 mohsenomidi

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...

mohsenomidi avatar May 17 '24 09:05 mohsenomidi