AuthForm
ImplementedSelf-contained auth card form for the three auth modes (sign-in / sign-up / forgot). Field set switches per mode — fullName only on sign-up, password hidden on forgot; labels and copy switch per locale (FR default, EN via locale prop, SeatMapLegend inline-i18n precedent). onSubmit receives { email, password?, fullName? } after native validation; secondaryAction renders the footer link. Password-manager autoComplete hints on every field.
components/organisms/authform/AuthForm.tsxFormulaire d'authentification en carte (connexion, inscription, mot de passe oublié) avec courriel + mot de passe. FR-CA : « Connexion · Accedez a votre compte ePassLive · Adresse courriel · Mot de passe · Mot de passe oublie ? · Pas encore de compte ? · Se connecter ».
AuthForm
Organism - Auth family (Family 1)
Formulaire HTML standard (<form> avec onSubmit). Le parent gere la logique de connexion / inscription via onSubmit. Les champs sont autoComplete-ready (email, current-password, new-password).
This component supports light and dark mode.
Props
mode*'sign-in' | 'sign-up' | 'forgot'Mode du formulaire.
emailstringCourriel pre-rempli.
onSubmit(payload: { email: string; password?: string; fullName?: string }) => voidCallback de soumission.
secondaryAction{ label; href }Lien secondaire (inscription, etc.).
locale'fr' | 'en'Locale des libellés (défaut fr).
classNamestringClasses additionnelles sur la carte.
Props
AuthForm
modeAuthMode—'sign-in' | 'sign-up' | 'forgot' — field set, copy and submit label switch per mode.
emailstring—Default email pre-filled (controlled by parent).
onSubmit(payload: { email: string; password?: string; fullName?: string }) => void—Called on form submission with the validated field values after native validation passes.
secondaryAction{ label: string; href: string }—Optional secondary action link rendered in the card footer.
locale"fr" | "en"'fr'Locale used for formatting and translated strings.
classNamestring—Additional classes merged onto the card wrapper.
<AuthForm />Accessibility
Type
1 ruleARIA
1 ruleUsage
Import
import { AuthForm } from "@epasslive/design-system"Example 1
<AuthForm mode="sign-in" secondaryAction={{ label: "Créer un compte", href: "/sign-up" }} onSubmit={handleSignIn} />Anti-patterns
— Do not fetch data directly in organisms
— Avoid tight coupling to specific data sources