Skip to main content

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​

PropType
namestringProduct name beside the mark.
subtitlestring
onSubmit(event) => void
providers{ id, name }[]One button per provider, labeled Sign in with that name.
onProvider(id) => void
providerPendingboolean
showDividerbooleanOr use your API key.
showCredentialsboolean
apiKeyModebooleanOne field, labeled API key.
userPropsinput propsSpread onto the login field.
passwordPropsinput propsSpread onto the password or API-key field.
userErrorstring
passwordErrorstring
submittingbooleanThe button reads Signing in…
errorstring

Render it inside SourcingTheme so the Nova tokens apply.