Skip to main content
Urbicon UI
source

ResetPasswordPage

Pre-built reset-password page with password confirmation.

01 Usage

Basic

Reset password

<script lang="ts">
  import { ResetPasswordPage } from '@urbicon-ui/auth';
  import { page } from '$app/state';

  // Token from the reset link, e.g. /auth/reset-password?token=...
  const token = $derived(page.url.searchParams.get('token') ?? '');
</script>

<ResetPasswordPage {token} />

02 Accessibility

Both failures land in the same place

The mismatch check runs in the browser before anything is sent, and it writes to the same page-level aria-live="polite" region as the server's invalid-token error. One region means a reader learns every way this page can fail from one spot, instead of having to hunt for which of two messages appeared.

The mismatch is not tied to either field

Unlike RegisterPage — which passes the mismatch to the field as error and gets aria-invalid — this page reports it only as page-level text. The reader hears that the passwords differ, not which field to fix. With exactly two fields that is recoverable, but it is a real difference between the two pages.

Autofill hints

Both fields are autoComplete="new-password", so a password manager offers to generate and then store the new secret rather than refilling the old one.

03 API Reference

12 props 1 required
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 { ResetPasswordPage } from '@urbicon-ui/auth';