SignIn.LoginWithSeparator
Visual separator component that divides email login from social login options with localized separator text.
Quick Example
import { SignIn, useAppTheme } from "@ovok/native";
import React from "react";
const SeparatorExample = () => {
const theme = useAppTheme();
return (
<SignIn.LoginWithSeparator
textColor={theme.colors.onSurfaceVariant}
lineColor={theme.colors.outline}
testID="login-separator"
/>
);
};
export default SeparatorExample;
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
textColor | string | - | theme.colors.onSurfaceDisabled | Text color for separator |
lineColor | string | - | theme.colors.outlineVariant | Color for separator lines |
testID | string | - | - | Test identifier |
Localization
The component uses this translation key:
{
"sign-in": {
"or-login-with": "Or sign in with"
}
}
sign-in.or-login-with- Separator text displayed between email form and social logins
Component Behavior
The component renders a horizontal layout with two flex lines and centered text, using theme spacing for consistent gap between elements.
Styling
Theme Variables Used
theme.spacing(4)- Gap spacing between separator elementstheme.colors.onSurfaceDisabled- Default text colortheme.colors.outlineVariant- Default line color
Related Components
- SignIn - Main sign-in component container
- SignIn.SocialLogins - Social logins container