@narangcia-oss/cryptic-auth-client-react
Version:
React hooks and components for cryptic-auth authentication with seamless OAuth2 integration
34 lines • 853 B
TypeScript
import React from "react";
export interface LoginFormProps {
/**
* Callback called on successful login
*/
onSuccess?: () => void;
/**
* Callback called on login error
*/
onError?: (error: string) => void;
/**
* Custom CSS classes for the form
*/
className?: string;
/**
* Custom styles for the form
*/
style?: React.CSSProperties;
/**
* Whether to show the signup link
* @default true
*/
showSignupLink?: boolean;
/**
* Custom submit button text
* @default 'Login'
*/
submitText?: string;
}
/**
* Pre-built login form component
*/
export declare function LoginForm({ onSuccess, onError, className, style, showSignupLink, submitText, }: LoginFormProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=LoginForm.d.ts.map