@zitadel/react theme wrapper, component

This commit is contained in:
Max Peintner
2023-04-20 17:07:26 +02:00
parent 787d177eb9
commit 238a73d923
10 changed files with 406 additions and 37 deletions

View File

@@ -0,0 +1,8 @@
export type ZitadelUIProps = {
dark: boolean;
children: React.ReactNode;
};
export function ZitadelUIProvider({ dark, children }: ZitadelUIProps) {
return <div className={`${dark ? "ui-dark" : "ui-light"} `}>{children}</div>;
}

View File

@@ -9,3 +9,8 @@ export {
SignInWithGitlab,
type SignInWithGitlabProps,
} from "./components/SignInWithGitlab";
export {
ZitadelUIProvider,
type ZitadelUIProps,
} from "./components/ZitadelUIProvider";