UNPKG

@codeworker.br/govbr-tw-react

Version:

Biblioteca de componentes React usando Tailwind CSS que implementa o Padrão Digital de Governo.

30 lines (29 loc) 1.22 kB
export interface LoginValues { username: string; password: string; } export interface LoginProps { title?: string; subtitle?: string; initialUsername?: string; initialPassword?: string; minUsernameLength?: number; minPasswordLength?: number; showGovBRLogo?: boolean; locatorText?: string; institutionText?: string; usernameLabel?: string; passwordLabel?: string; usernamePlaceholder?: string; passwordPlaceholder?: string; submitLabel?: string; usernameRequiredMessage?: string; usernameMinLengthMessage?: string; passwordRequiredMessage?: string; passwordMinLengthMessage?: string; onSubmit?: (values: LoginValues) => void; disabled?: boolean; className?: string; } declare const Login: ({ title, subtitle, initialUsername, initialPassword, minUsernameLength, minPasswordLength, showGovBRLogo, locatorText, institutionText, usernameLabel, passwordLabel, usernamePlaceholder, passwordPlaceholder, submitLabel, usernameRequiredMessage, usernameMinLengthMessage, passwordRequiredMessage, passwordMinLengthMessage, onSubmit, disabled, className, }: LoginProps) => import("react/jsx-runtime").JSX.Element; export default Login;