Skip to content

Components Package

Package: @hereby/components | Alpine.js auth component library

Reusable auth-oriented Alpine components distributed as ESM, CJS, and browser bundles.

Exported Components

  • authGateComponent
  • loginFormComponent
  • registerFormComponent
  • changePasswordFormComponent

Alpine Plugin

The package exports createAuthComponentsPlugin().

It registers these Alpine data factories:

  • authGate
  • loginForm
  • registerForm
  • changePasswordForm

Bundles

Configured outputs:

  • CommonJS build from src/index.ts
  • ESM build from src/index.ts
  • Browser IIFE bundle from src/browser.ts

Notable browser global:

  • HerebyComponents

HTML templates are also shipped in the html/ directory:

  • signin-form.html
  • signup-form.html
  • change-password-form.html