typesnippet / antd-phone-input

Advanced, highly customizable phone input component for Ant Design.
https://playground.typesnippet.org/antd-phone-input-5.x/
MIT License
60 stars 11 forks source link

💡 Feature Request - Arrow icon after the country flag #88

Closed debotos closed 4 months ago

debotos commented 6 months ago

Summary

An arrow icon after the country icon(dropdown trigger) to indicate it's a select/dropdown.

Basic Example

Screenshot 2024-05-09 at 9 44 04 AM

Drawbacks

addonBefore size will increase a bit.

ArtyomVancyan commented 6 months ago

@debotos, when designing this component, <flag> <country code> <arrow> looked ugly to me, so I kept the <flag> <country code> form, but it's not a bad idea to make it appear using a boolean property. I think it doesn't look too bad and is possible in the near future. Thanks for the suggestion.

ArtyomVancyan commented 4 months ago

Hey @debotos, the arrow has been added in the latest release of the package. You can enable it using the enableArrow option of the component. You can also test it out in the playground server. Thanks for the suggestion.