A centered sign in page that leads with the email and password form, with Google and Apple side by side under the divider.
Dependencies
Interaction Type
Every field has a visible label and the right autocomplete, so password managers fill it. The password toggle is a 44px button with aria-pressed and a label for each state; its eye icons crossfade instead of cutting. Errors set aria-invalid and are announced as an alert. All controls are 44px tall with the accent focus ring.
Props
Options you can pass to customize this component.
titlePage heading. Defaults to "Welcome back".
descriptionLine under the heading.
onSubmitCalled with the email and password when the form is submitted.
onProviderCalled with the provider id when a sign in button is pressed.
providersSign in providers. Defaults to Google and Apple. Pass [] to hide them.
errorError under the fields. Sets aria-invalid on both inputs, links them with aria-describedby and is announced as an alert.
forgotHrefWhere the forgot password link points.
signupHrefWhere the create account link points.
emailLabel, passwordLabel, submitLabelVisible labels, all overridable for localization.
showPasswordLabel, hidePasswordLabelAccessible names of the password toggle in each state.
Installation
How to use
<LoginEmail onSubmit={({ email, password }) => signIn(email, password)} />Source Code
Click the code icon in the top-right corner to view the source code.
License & Usage
// No code loaded.Sign in to keep building with Nexvyn UI.
New to Nexvyn UI? Create an account