@april9/stack9-react
v5.0.0-rc.1.1-bd9cf37
Published
This package provides a way to integrate with Stack9 Authentication
Downloads
2,772
Readme
This package provides a way to integrate with Stack9 Authentication
Installation
yarn add @april9/stack9-reactExamples
Components
AuthAdapter
Import the CSS from stack9-react:
// src/index.tsx import '@april9/stack9-react/dist/index.css';or if you are using tailwind
// tailwind.config.ts const path = require('path'); const config: Config = { content: [ ... path.join(path.dirname(require.resolve('@april9/stack9-react')), '**/*.js'), ], ... }; export default config;Create a page
// src/pages/LoginPage.tsx import { AuthAdapterSelector } from '@april9/stack9-react'; const authAdapter: AuthAdapter = 'password'; return ( <div> <AuthAdapterSelector authAdapter={authAdapter} /> </div> );
