react-otp-input icon indicating copy to clipboard operation
react-otp-input copied to clipboard

Need option to change the border color of focus

Open vidhyeshpatil opened this issue 3 years ago • 4 comments

  • Describe the Feature Request

Currently not able to change / override the border color on focus i.e. "focusStyle" - Default it's blue color.

  • Describe Preferred Solution

focusStyle - give the option to override the same

vidhyeshpatil avatar Jun 24 '21 03:06 vidhyeshpatil

Just change the outline not the border

TheAhmadSami avatar Sep 06 '21 05:09 TheAhmadSami

Setting focusStyle={{ outline: 'none', border: '2px solid #05DEBA', borderRadius: '8px' }} works. But why do I need to mess with the outline if all I want is border?

RajuSuranagi avatar Sep 08 '21 07:09 RajuSuranagi

Because outline is a default css property for inputs, checkboxes, buttons and other html tags. So you must overwrite it's value even when you just work with borders.

TheAhmadSami avatar Sep 09 '21 19:09 TheAhmadSami

The feature is available in: https://www.npmjs.com/package/react18-input-otp

ritikbanger avatar Aug 09 '22 17:08 ritikbanger

You can now fully customize the input element with v3.

prateek3255 avatar Mar 25 '23 15:03 prateek3255