Skip to main content
Urbicon UI
source

ForgotPasswordPage

A form that requests a password-reset email.

01 Usage

Basic

Forgot password

Enter your email address and we will send you a link to reset your password.

Back to sign in
<script lang="ts">
  import { ForgotPasswordPage } from '@urbicon-ui/auth';
</script>

<ForgotPasswordPage />

02 Accessibility

Both outcomes are announced

Two regions below the heading are always mounted: failures land in the assertive role="alert" one, and the confirmation that replaces the form in the polite role="status" one. The outcome reaches the reader on either path, urgently only where it has to be, and focus stays where the user left it. The success screen appears whether or not the address has an account, so the page never reveals which emails are registered.

A single labelled field

The one input is type="email", required, and autoComplete="email". The Input primitive renders a real <label for> tied to the field id, so clicking the label focuses the field and the reader announces the two together.

Submit reports its own busy state

While the request is in flight the button is both disabled and aria-busy (blocks' Button sets the latter from loading). A user who hears nothing after pressing Enter can still query the button and learn that the request is running.

03 API Reference

12 props
Prop
Type
Default
Description

04 Types

Local type definitions used by this component.

6 types
Name
Kind
Category
Used by
Description

05 Installation

Import

import { ForgotPasswordPage } from '@urbicon-ui/auth';