We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any way to add a placeholder (ex: "-") for the input fields?
The text was updated successfully, but these errors were encountered:
not yet possible, but could be useful feature
Sorry, something went wrong.
import ReactCodeInput from "react-code-input"; export default function ExampleComponent({}: {}) { ... const inputRef = useRef<any>(null) useEffect(() => { if (null !== inputRef.current){ document.querySelectorAll("input") .forEach((node: HTMLInputElement) => node.setAttribute('placeholder', '0')); } }) return ( ... <ReactCodeInput ref={inputRef} fields={4} name="pin" type="text" inputMode="latin" /> ... )}
No branches or pull requests
Is there any way to add a placeholder (ex: "-") for the input fields?
The text was updated successfully, but these errors were encountered: