2.4 KiB
2.4 KiB
Login Screen
User authentication screen with email and password inputs.
Layout
╭──────────────────────────────────────────╮
│ │
│ {{title}} │
│ {{subtitle}} │
│ │
│ Email │
│ {{emailInput}} │
│ │
│ Password │
│ {{passwordInput}} │
│ │
│ {{errorMessage}} │
│ │
│ {{submitButton}} │
│ │
│ {{forgotPassword}} │ {{signupLink}} │
│ │
╰──────────────────────────────────────────╯
Components Used
- email-input: Email address field with validation
- password-input: Password field with show/hide toggle (Note: using email-input as placeholder)
- submit-button: Form submission button (using primary-button)
- error-alert: Error message display (optional)
States
Idle State
User has not yet interacted with the form.
Loading State
While authenticating user credentials.
Error State
When authentication fails - shows error message above submit button.
Variables
title(string): Screen heading textsubtitle(string): Subheading textemailInput(component): Email input componentpasswordInput(component): Password input componentsubmitButton(component): Submit button componenterrorMessage(component): Error alert componentforgotPassword(link): Forgot password linksignupLink(link): Sign up link
User Flows
- User enters email address
- User enters password
- User clicks "Sign In" button
- System validates credentials
- If valid: Navigate to dashboard
- If invalid: Show error message, allow retry
Accessibility
- Role: main
- ARIA Label: "Login form"
- Keyboard: Tab navigation between fields, Enter to submit
- Screen Reader: All fields properly labeled