import { useState } from 'react' import { OTPInput } from '../../../Inputs' const OTPInputLightHouse = () => { const [basicOtp, setBasicOtp] = useState('') const [requiredOtp, setRequiredOtp] = useState('') const [errorOtp, setErrorOtp] = useState('123') const [disabledOtp] = useState('123456') const [fourDigitOtp, setFourDigitOtp] = useState('') const [eightDigitOtp, setEightDigitOtp] = useState('') return (
{/* Basic OTPInput */} {/* With sublabel and hint */} {/* Required field */} {/* Error state */} 0 && errorOtp.length < 6} errorMessage="Please enter all 6 digits" /> {/* Disabled state */} {}} length={6} disabled hintText="This field is disabled" /> {/* Different lengths */} {/* With help icon */}
) } export default OTPInputLightHouse