ResetPassword.Header
Header section component containing title and description for the password reset flow.
- Stable unknown
- Release candidate since 1.16.1-rc.3
- Development since 1.16.1-dev.2111+9796905
Header section component containing title and description for the password reset flow.
Usage
Default Header
import { ResetPassword } from "@ovok/native";
import React from "react";
const DefaultHeader = () => {
return (
<ResetPassword.Header>
<ResetPassword.Header.Title />
<ResetPassword.Header.Description />
</ResetPassword.Header>
);
};
export default DefaultHeader;Props
Every prop, with its type and description, is listed in the @ovok/native/auth API reference.
Sub-Components
ResetPassword.Header.Title
Displays the main title for the reset password screen.
- Default: Uses
"reset-password.title"translation - Customizable: Can override with custom text
- Documentation: Complete Title component guide
ResetPassword.Header.Description
Displays descriptive text explaining the reset process.
- Default: Uses
"reset-password.subtitle"translation - Customizable: Can override with custom text
- Documentation: Complete Description component guide
Default Styles
The header uses these default styles:
const defaultStyles = {
gap: theme.spacing(4), // 16px gap between title and description
};Features
Localization Support
Uses translation keys for default content:
// Default translations used:
// - "reset-password.title"
// - "reset-password.subtitle"Last updated on
ResetPassword.Form.Spacing
Flexible spacing component that creates layout space between form elements and pushes the submit button to the bottom of the container.
ResetPassword.Header.Description
The description component for the password reset header, providing instructional text to guide users through the reset process.