Skip to content
Browse docs and components

Auth

auth

The parts every Forme sign-in page is built from: a field with a label-row action, a password input with a show toggle, provider buttons, the divider, a testimonial and a row of customer marks. The numbered auth blocks are layouts of these; install this one to build your own.

Responsive

Install

$npxshadcnadd@forme/auth

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

AuthLogo

The brand tile, with an optional wordmark beside it. Replace the glyph with your own mark.

PropTypeDefaultDescription
size"md" | "lg""md"

Also takes every prop of <span> attributes.

GoogleIcon

PropTypeDefaultDescription
classNamestring—
aria-hiddenboolean | "true"—

AppleIcon

PropTypeDefaultDescription
classNamestring—
aria-hiddenboolean | "true"—

GitHubIcon

PropTypeDefaultDescription
classNamestring—
aria-hiddenboolean | "true"—

AuthTestimonial

A quote, who said it, and an optional rating above. Centred; align it with className.

PropTypeDefaultDescription
quote*ReactNode—
name*string—
title*string—What they do and where: "Co-founder, Northwind".
avatarstring—An image URL. Without one the initials stand in.
ratingbooleantrue

Also takes every prop of <figure> attributes.

AuthLogos

PropTypeDefaultDescription
countnumber4

Also takes every prop of <ul> attributes.

GridPattern

PropTypeDefaultDescription
classNamestring—
sizenumber56

DotPattern

PropTypeDefaultDescription
classNamestring—

The other parts

  • AuthTitleTakes <h1> attributes
  • AuthDescriptionTakes <p> attributes
  • AuthLinkTakes <a> attributes
  • AuthLegalTakes <p> attributes
  • AuthDividerTakes <div> attributes
  • AuthRatingTakes <div> attributes