mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 05:44:36 +00:00
@zitadel/react theme wrapper, component
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
@@ -9,3 +9,8 @@ export {
|
||||
SignInWithGitlab,
|
||||
type SignInWithGitlabProps,
|
||||
} from "./components/SignInWithGitlab";
|
||||
|
||||
export {
|
||||
ZitadelUIProvider,
|
||||
type ZitadelUIProps,
|
||||
} from "./components/ZitadelUIProvider";
|
||||
|
||||
Reference in New Issue
Block a user