devfolioco / react-otp-input

:heavy_check_mark: OTP Input Component for React

Home Page:http://devfolioco.github.io/react-otp-input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make the inputStyle as Object Rather than String

TheAvtarSingh opened this issue · comments

  • Steps to reproduce the issue:
    <OtpInput
    value={otp}
    onChange={setOtp}
    inputStyle={}
    numInputs={4}
    renderSeparator={-}
    renderInput={(props) => <input {...props} />}
    />
    JSX attributes must only be assigned a non-empty 'expression'.ts(17000)

  • Relevant error messages and/or screenshots:
    image