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
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
children | React.ReactNode | - | t("sign-in.title") | Title text |
variant | MD3TypescaleKey | - | undefined | Typography variant |
style | StyleProp<TextStyle> | - | undefined | Custom 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".
Related Components
- SignIn.Header - Header container component
- SignIn.Header.Description - Description text component
- SignIn - Main sign-in component