devfolioco / react-otp-input

:heavy_check_mark: OTP Input Component for React
http://devfolioco.github.io/react-otp-input
MIT License
654 stars 424 forks source link

react-otp-input css #364

Closed irtaza9 closed 1 year ago

irtaza9 commented 1 year ago
               <OtpInput
                value={otp}
                onChange={handleChangeotp}
                numInputs={6}
                separator={<span style={{ width: "8px" }}></span>}
                shouldAutoFocus={true}
                inputStyle={{
                  border: "1px solid transparent",
                  borderRadius: "8px",
                  width: "54px",
                  height: "54px",
                  fontSize: "12px",
                  color: "#000",
                  fontWeight: "400",
                  caretColor: "blue",
                  backgroundColor: "darkgray",
                }}
                focusStyle={{
                  border: "1px solid #CFD3DB",
                  outline: "none",
                }}
              />
irtaza9 commented 1 year ago

Closing this as this is just for others so that they can use it

Cor4zon commented 1 year ago

Thanks a lot, it solved my problem

abena07 commented 3 months ago

how do you make the width responsive?

irtaza9 commented 3 months ago

Which width? The width for input box or the container width? or something else.

abena07 commented 3 months ago

the input width, but btw i figured it out with tailwind media queries