# Identity & Access / Sign Up Sign-up and registration patterns for government services with citizen onboarding flows. **Category:** Patterns **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-patterns-identity-access-sign-up--column ## Pattern variants - Column: https://doc.ux4g.gov.in/web/?path=/story/ux4g-patterns-identity-access-sign-up--column - Full Screen: https://doc.ux4g.gov.in/web/?path=/story/ux4g-patterns-identity-access-sign-up--full-screen - Card: https://doc.ux4g.gov.in/web/?path=/story/ux4g-patterns-identity-access-sign-up--card ## When to use this pattern Use Identity & Access / Sign Up when building citizen-facing flows that match the described government journey. Combine components such as cards, forms, tables, buttons, and status indicators as shown in Storybook. ## Framework setup ### HTML / CDN ```html ``` ### React ```bash npm install ux4g-web-components ``` ```jsx import 'ux4g-web-components/styles.css'; import 'ux4g-web-components/design-system'; ``` ### Angular Update `angular.json`: ```json { "styles": [ "node_modules/ux4g-web-components/styles/ux4g.css", "src/styles.css" ], "scripts": [ "node_modules/ux4g-web-components/dist/runtime/design-system.js" ] } ``` ## Code examples The snippets below are extracted from the Storybook canvas for Identity & Access / Sign Up. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Card — Reset Password - Mobile Number HTML: ```html
arrow_back Back to Sign in

Reset Password

Enter your registered mobile number to receive a verification code

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample1Demo = () => ( <>
arrow_back Back to Sign in

Reset Password

Enter your registered mobile number to receive a verification code

+91
OR
error_outline
Most services use OTP login so you may not need a password.
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample1Demo; ``` Angular: ```html
arrow_back Back to Sign in

Reset Password

Enter your registered mobile number to receive a verification code

``` ### 2. Card — Reset Password - OTP Entry HTML: ```html
arrow_back Back

Enter OTP

Sent to +91 98765 XXXXX

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample2Demo = () => ( <>
arrow_back Back

Enter OTP

Sent to +91 98765 XXXXX

Didn't receive OTP? Resend in 00:17
OTP is valid for 10 minutes
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample2Demo; ``` Angular: ```html
arrow_back Back

Enter OTP

Sent to +91 98765 XXXXX

``` ### 3. Card — Reset Password - Create New Password HTML: ```html
arrow_back Back

Create new password

Your new password must be different from previous used password

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample3Demo = () => ( <>
arrow_back Back

Create new password

Your new password must be different from previous used password

visibility
visibility
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample3Demo; ``` Angular: ```html
arrow_back Back

Create new password

Your new password must be different from previous used password

``` ### 4. Card — Success - Password Reset HTML: ```html
done

Password reset successfully

Your password has been changed successfully. Use your new password to log in.

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample4Demo = () => ( <>
done

Password reset successfully

Your password has been changed successfully. Use your new password to log in.

{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample4Demo; ``` Angular: ```html
done

Password reset successfully

Your password has been changed successfully. Use your new password to log in.

``` ### 5. Card — Account Recovery - Email HTML: ```html
arrow_back Back

Account recovery

Enter your registered email address to recover your account.

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample5Demo = () => ( <>
arrow_back Back

Account recovery

Enter your registered email address to recover your account.

{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample5Demo; ``` Angular: ```html
arrow_back Back

Account recovery

Enter your registered email address to recover your account.

``` ### 6. Card — Create Account - Mobile Number HTML: ```html

Create your account

Enter your mobile number to get started

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample6Demo = () => ( <>
{/* Centered White Card Form Box */}

Create your account

Enter your mobile number to get started

{/* Input container */}
+91
{/* Warning Alert Block */}
error
Your status message goes here
Take action Attempt 1 of 5
{/* Actions */}
{/* Bottom Link */}
Already have an account? Sign in
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample6Demo; ``` Angular: ```html

Create your account

Enter your mobile number to get started

``` ### 7. Card — Verify Mobile - OTP Entry HTML: ```html
arrow_back Back

Verify your mobile

Enter the 6-digit OTP sent to +91 98765 XXXXX

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample7Demo = () => ( <>
{/* Centered White Card Form Box */}
{/* Back navigation link */} arrow_back Back

Verify your mobile

Enter the 6-digit OTP sent to +91 98765 XXXXX

{/* OTP Input Block Component (6 slots, auto-generated by data-ux-otp) */}
Didn't receive OTP? Resend in 00:17
{/* Actions */}
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample7Demo; ``` Angular: ```html
arrow_back Back

Verify your mobile

Enter the 6-digit OTP sent to +91 98765 XXXXX

``` ### 8. Card — Complete Profile HTML: ```html
arrow_back Back

Complete your profile

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample8Demo = () => ( <>
{/* Centered White Card Form Box */}
{/* Back navigation link */} arrow_back Back

Complete your profile

{/* Full Name Input Field */}
{/* Email Address Input Field */}
{/* Mobile Number Input Field */}
+91
{/* Category Select Field */}
{/* Actions */}
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample8Demo; ``` Angular: ```html
arrow_back Back

Complete your profile

``` ### 9. Card — Password Setup HTML: ```html
arrow_back Back

Password setup

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample9Demo = () => ( <>
{/* Centered White Card Form Box */}
{/* Back navigation link */} arrow_back Back

Password setup

{/* Password Input Field */}
{/* Confirm Password Input Field */}
{/* Actions */}
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample9Demo; ``` Angular: ```html
arrow_back Back

Password setup

``` ### 10. Card — Success - Account Created HTML: ```html
done

Account Created!

Welcome, Ramesh Kumar

RECOMMENDED You can link Aadhaar later from your profile
``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample10Demo = () => ( <>
{/* Centered White Card Form Box */}
{/* Success Badge Checkmark */}
done
{/* Success Heading & Subtext */}

Account Created!

Welcome, Ramesh Kumar

{/* Recommended Tag and Actions */}
RECOMMENDED You can link Aadhaar later from your profile
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample10Demo; ``` Angular: ```html
done

Account Created!

Welcome, Ramesh Kumar

RECOMMENDED You can link Aadhaar later from your profile
``` ### 11. Column — Create Account - Mobile Number HTML: ```html
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated

Create your account

Enter your mobile number to get started

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample11Demo = () => ( <>
{/* Left Panel (Sidebar - hidden on Mobile) */}
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated
{/* Right Panel (Form panel) */}

Create your account

Enter your mobile number to get started

{/* Input container */}
+91
{/* Warning Alert Block */}
error
Your status message goes here
Take action Attempt 1 of 5
{/* Actions */}
{/* Bottom Link */}
Already have an account? Sign in
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample11Demo; ``` Angular: ```html
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated

Create your account

Enter your mobile number to get started

``` ### 12. Column — Verify Mobile - OTP Entry HTML: ```html
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated
arrow_back Back

Verify your mobile

Enter the 6-digit OTP sent to +91 98765 XXXXX

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample12Demo = () => ( <>
{/* Left Panel (Sidebar - hidden on Mobile) */}
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated
{/* Right Panel (Form panel) */}
{/* Back navigation link */} arrow_back Back

Verify your mobile

Enter the 6-digit OTP sent to +91 98765 XXXXX

{/* OTP Input Block Component (6 slots, auto-generated by data-ux-otp) */}
Didn't receive OTP? Resend in 00:17
{/* Actions */}
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample12Demo; ``` Angular: ```html
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated
arrow_back Back

Verify your mobile

Enter the 6-digit OTP sent to +91 98765 XXXXX

``` ### 13. Column — Complete Profile HTML: ```html
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated
arrow_back Back

Complete your profile

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample13Demo = () => ( <>
{/* Left Panel (Sidebar - hidden on Mobile) */}
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated
{/* Right Panel (Form panel) */}
{/* Back navigation link */} arrow_back Back

Complete your profile

{/* Full Name Input Field */}
{/* Email Address Input Field */}
{/* Mobile Number Input Field */}
+91
{/* Category Select Field */}
{/* Actions */}
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample13Demo; ``` Angular: ```html
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated
arrow_back Back

Complete your profile

``` ### 14. Column — Password Setup HTML: ```html
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated
arrow_back Back

Password setup

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample14Demo = () => ( <>
{/* Left Panel (Sidebar - hidden on Mobile) */}
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated
{/* Right Panel (Form panel) */}
{/* Back navigation link */} arrow_back Back

Password setup

{/* Password Input Field */}
{/* Confirm Password Input Field */}
{/* Actions */}
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample14Demo; ``` Angular: ```html
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated
arrow_back Back

Password setup

``` ### 15. Column — Success - Account Created HTML: ```html
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated
done

Account Created!

Welcome, Ramesh Kumar

RECOMMENDED You can link Aadhaar later from your profile
``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample15Demo = () => ( <>
{/* Left Panel (Sidebar - hidden on Mobile) */}
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated
{/* Right Panel (Form panel) */}
{/* Success Badge Checkmark */}
done
{/* Success Heading & Subtext */}

Account Created!

Welcome, Ramesh Kumar

{/* Recommended Tag and Actions */}
RECOMMENDED You can link Aadhaar later from your profile
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample15Demo; ``` Angular: ```html
UX4G Logo

Secure Digital Access to Government Services

Access certificates, documents, and identity verification seamlessly across all government platforms through a unified citizen login.

TRUSTED BY 800M+ Citizens
AVAILABLE SERVICES 5000+ Integrated
done

Account Created!

Welcome, Ramesh Kumar

RECOMMENDED You can link Aadhaar later from your profile
``` ### 16. Full Screen — Create Account - Mobile Number HTML: ```html

Create your account

Enter your mobile number to get started

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample16Demo = () => ( <>
{/* Main Panel (Centered) */}

Create your account

Enter your mobile number to get started

{/* Input container */}
+91
{/* Warning Alert Block */}
error
Your status message goes here
Take action Attempt 1 of 5
{/* Actions */}
{/* Bottom Link */}
Already have an account? Sign in
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample16Demo; ``` Angular: ```html

Create your account

Enter your mobile number to get started

``` ### 17. Full Screen — Verify Mobile - OTP Entry HTML: ```html
arrow_back Back

Verify your mobile

Enter the 6-digit OTP sent to +91 98765 XXXXX

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample17Demo = () => ( <>
{/* Main Panel (Centered) */}
{/* Back navigation link */} arrow_back Back

Verify your mobile

Enter the 6-digit OTP sent to +91 98765 XXXXX

{/* OTP Input Block Component (6 slots, auto-generated by data-ux-otp) */}
Didn't receive OTP? Resend in 00:17
{/* Actions */}
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample17Demo; ``` Angular: ```html
arrow_back Back

Verify your mobile

Enter the 6-digit OTP sent to +91 98765 XXXXX

``` ### 18. Full Screen — Complete Profile HTML: ```html
arrow_back Back

Complete your profile

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample18Demo = () => ( <>
{/* Main Panel (Centered) */}
{/* Back navigation link */} arrow_back Back

Complete your profile

{/* Full Name Input Field */}
{/* Email Address Input Field */}
{/* Mobile Number Input Field */}
+91
{/* Category Select Field */}
{/* Actions */}
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample18Demo; ``` Angular: ```html
arrow_back Back

Complete your profile

``` ### 19. Full Screen — Password Setup HTML: ```html
arrow_back Back

Password setup

``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample19Demo = () => ( <>
{/* Main Panel (Centered) */}
{/* Back navigation link */} arrow_back Back

Password setup

{/* Password Input Field */}
{/* Confirm Password Input Field */}
{/* Actions */}
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample19Demo; ``` Angular: ```html
arrow_back Back

Password setup

``` ### 20. Full Screen — Success - Account Created HTML: ```html
done

Account Created!

Welcome, Ramesh Kumar

RECOMMENDED You can link Aadhaar later from your profile
``` React: ```jsx import React from 'react'; const IdentityAccessSignUpExample20Demo = () => ( <>
{/* Main Panel (Centered) */}
{/* Success Badge Checkmark */}
done
{/* Success Heading & Subtext */}

Account Created!

Welcome, Ramesh Kumar

{/* Recommended Tag and Actions */}
RECOMMENDED You can link Aadhaar later from your profile
{/* Footer Branding */}
Powered by -
); export default IdentityAccessSignUpExample20Demo; ``` Angular: ```html
done

Account Created!

Welcome, Ramesh Kumar

RECOMMENDED You can link Aadhaar later from your profile
```