registry
@automindzsheets 01–77shadcn 4.x
SHEET 02

Auth Card

block / auth

Sign-in / sign-up card combining SSO providers with an optional email + password form.

type
block
files
1
registry deps
button, card, input, label, @automindz/sso-buttons
npm deps
lucide-react

installs

  • components/automindz/auth-card.tsx
  • SSO row plus optional email + password form
  • sign-in / sign-up modes from one component
  • Inline error region, no toast dependency

Omit onSubmitCredentials for an SSO-only card. Set mode="sign-up" for the register variant.

Variations

one state per section

01

Sign in, SSO and credentials

Submit empty to see field-level validation; errors clear as you type. Submitting locks the whole fieldset, not just the button.

fluid
Sign in
Use your work account to continue.

Don't have an account? Create one
02

Sign up, rejected by the server

Minimum-length hint until the field is wrong, then the error replaces it. A server rejection renders once, above the submit.

fluid
Create an account
Get started with your work email.

At least 8 characters.

Already have an account? Sign in
03

SSO only

Omit onSubmitCredentials and the form, divider and hints disappear. No prop juggling to hide passwords.

fluid
Sign in
Your organisation uses single sign-on.

04

Credentials accepted

Pass successMessage and the card swaps to a terminal state instead of leaving a live form behind mid-redirect.

fluid
Sign in
Use your work account to continue.