Skip to main content
Hanko Elements Registration Component Guide:About Hanko:Hanko is a modern open source authentication solution and the fastest way you integrate passkeys, 2FA, SSO, and more—with full control over your data. Move between self-hosted and Hanko Cloud anytime. No lock-in. Just Auth how it should be: secure, user friendly, and fully yours.What This Guide Covers: This guide demonstrates how to implement the <hanko-registration> web component, which provides a dedicated user registration interface for creating new accounts. You’ll learn how to integrate this component for applications that require separate registration flows or controlled onboarding processes.Key Technologies:
  • Hanko Elements
  • Web Components
  • JavaScript/TypeScript
  • React, Vue, Svelte
  • Next.js, Nuxt, SvelteKit
  • User registration
  • Passkeys
  • OAuth SSO
  • Account creation workflows
Prerequisites:
  • Basic knowledge of frontend development, HTML/JavaScript, your chosen framework
  • Active Hanko account with API access
Tasks You’ll Complete:
  • Install and register the Hanko Elements package
  • Configure the <hanko-registration> component for registration-only flows
  • Implement the component across different frameworks (React, Vue, Svelte)
  • Set up event handlers for successful registration events
  • Configure component attributes for prefilled values and language settings
  • Handle account creation and post-registration navigation

Use case

The <hanko-registration> component is perfect for creating dedicated user registration flows in modern web applications. It provides a secure, flexible way to onboard new users with minimal setup—eliminating the need to build custom UI or manage complex authentication logic. If you want to Combine Login and Register on the same page:
try out the<hanko-auth> component.
If you want to create a dedicated Login page:
try out the<hanko-login> component.

Features

Usage

Markup

Attributes

Adding <hanko-registration> component

The following examples show how to integrate the <hanko-registration> component in different full-stack and frontend frameworks.

Full stack

components/HankoRegister.tsx

Frontend

components/HankoRegister.tsx
You should see an interface similar to this 👇
sign-up
For more detailed instructions on integrating <hanko-registration> component with your favorite frameworks, navigate to quickstart guides.