login cleanup, react

This commit is contained in:
Max Peintner
2023-04-14 17:22:59 +02:00
parent e651eacf2b
commit 770f186abb
19 changed files with 418 additions and 120 deletions

View File

@@ -0,0 +1,39 @@
# How to use
### Install
```sh
npm install @zitadel/react
```
or
```sh
yarn add @zitadel/react
```
### Import styles file
To get the styles, import them in `_app.tsx` or global styling file
```
import "@zitadel/react/styles.css";
```
### Setup Dark mode
to set dark theme, wrap your components in a `ui-dark` class.
### Use components
```tsx
import { SignInWithGoogle } from "@zitadel/react";
export default function IdentityProviders() {
return (
<div className="py-4">
<SignInWithGoogle />
</div>
);
}
```