diff --git a/README.md b/README.md index d6c2705..55e7883 100644 --- a/README.md +++ b/README.md @@ -51,9 +51,9 @@ import { OTPTextInput } from '@sectiontn/otp-input'; You may need to import type `OTPTextViewHandle` to use the `ref` on the component (if you use TypeScript). ```typescript jsx -import { OTPTextInput, type OTPTextViewHandle } from '@sectiontn/otp-input'; +import { OTPTextInput, type OTPTextInputHandle } from '@sectiontn/otp-input'; // Later in your component. -const OTPRef = useRef(null); +const OTPRef = useRef(null); ``` ## ♻ Usage Call the `OTPTextInput` component in your JSX code and pass the required props to customize the OTP input field.