Files
site/apps/web/src/modules/auth/components/AuthSwitch.tsx
T

13 lines
381 B
TypeScript

import type { InputHTMLAttributes, PropsWithChildren } from "react";
type AuthSwitchProps = InputHTMLAttributes<HTMLInputElement> & PropsWithChildren;
export function AuthSwitch({ children, ...props }: AuthSwitchProps): JSX.Element {
return (
<label className="z-login-remember">
<input type="checkbox" {...props} />
<span>{children}</span>
</label>
);
}