Skip to main content
Urbicon UI
source

ForgotPasswordPage

Pre-built forgot-password page. Sends reset link, prevents email enumeration.

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

The error region below the heading is always mounted and aria-live="polite", so a server or network failure is announced without moving focus. On success the form is replaced by an Alert, which blocks renders with role="alert" — so the outcome reaches the reader on either path, and focus stays where the user left it.

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

11 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';