Skip to main content

Sign in Pro

Email and password with errors that show under the field and clear as you fix them, a busy button while it checks, a notice when the server says no, social buttons above, and links to reset the password or sign up. Try any email with the password patine.

import { SignInScreen } from '@patine-ui/pro';
Loading…
<SignInScreen
  onSubmit={async ({ password }) => {
    await wait(900);
    if (password !== 'patine') throw new Error('Demo: the password is “patine”.');
  }}
  onForgotPassword={() => {}}
  onSignUp={() => {}}
  providers={[
    { id: 'apple', label: 'Continue with Apple', onPress: () => {} },
    { id: 'google', label: 'Continue with Google', onPress: () => {} },
  ]}
/>

Make it yours​

PropTypeDefault
onSubmit({ email, password }) => void | Promise<void>: throw to show the errorRequired
providers{ id, label, onPress }[]None
onForgotPassword, onSignUp() => voidHides the link when left out
noticestring: a message above the formNone
labelsPartial<SignInLabels>English

Built from the free TextField, Button and Alert.

In real apps​

Every complete app has its own version of this screen, wired to its auth, data and settings: see the templates.