SignInCard
The sign-in card. The host owns the form state and passes the field props through.
Example
<SignInCard
name="Sourcing"
subtitle="Sign in to continue"
providers={[{ id: 'google', name: 'Google' }]}
onProvider={startProvider}
showDivider
showCredentials
onSubmit={signIn}
/>
Props
| Prop | Type | |
|---|---|---|
name | string | Product name beside the mark. |
subtitle | string | |
onSubmit | (event) => void | |
providers | { id, name }[] | One button per provider, labeled Sign in with that name. |
onProvider | (id) => void | |
providerPending | boolean | |
showDivider | boolean | Or use your API key. |
showCredentials | boolean | |
apiKeyMode | boolean | One field, labeled API key. |
userProps | input props | Spread onto the login field. |
passwordProps | input props | Spread onto the password or API-key field. |
userError | string | |
passwordError | string | |
submitting | boolean | The button reads Signing in… |
error | string |
Render it inside SourcingTheme so the Nova tokens apply.