Hiyve Components - v1.0.0
    Preparing search index...

    Function EmailVerification

    • Automatically verifies an email address when mounted with a valid token.

      Shows a loading state during verification, then transitions to either a success view or an error view with an option to resend the verification email.

      Parameters

      Returns Element

      Key Features:

      • Auto-verifies on mount -- no user interaction needed
      • Three visual states: verifying (spinner), success, and error
      • Resend verification email option on failure (requires email prop)
      • "Continue" button on success for navigation
      • Customizable labels, colors, styles, and icons
      const token = new URLSearchParams(location.search).get('verify_token')!;

      <EmailVerification
      token={token}
      email="user@example.com"
      onSuccess={() => console.log('Email verified')}
      onContinue={() => navigate('/dashboard')}
      />