Skip to main content

SignIn.Header.Title

Title component for the sign-in header section that displays the main heading with localization support.

Quick Example

import { SignIn } from "@ovok/native";
import React from "react";

const TitleExample = () => {
return (
<SignIn.Header>
<SignIn.Header.Title>Welcome Back</SignIn.Header.Title>
</SignIn.Header>
);
};

export default TitleExample;

Props

PropTypeRequiredDefaultDescription
childrenReact.ReactNode-t("sign-in.title")Title text
variantMD3TypescaleKey-undefinedTypography variant
styleStyleProp<TextStyle>-undefinedCustom text styles

Localization

The component uses the following translation keys:

{
"sign-in": {
"title": "Sign In"
}
}

Default Behavior

When no children prop is provided, the component automatically displays the localized title:

<SignIn.Header.Title />

This renders the value of t("sign-in.title") which defaults to "Sign In".