@keycloakify/keycloak-account-ui
Version:
<p align="center"> <img src="https://github.com/user-attachments/assets/e31c4910-7205-441c-9a35-e134b806b3a8"> </p> <p align="center"> <i>Repackaged Keycloak Account UI</i> <br> <br> <a href="https://github.com/keycloakify/keycloak-a
12 lines (11 loc) • 670 B
TypeScript
import { FieldValues, FieldPath, UseControllerProps } from "react-hook-form";
import { SwitchProps } from "@patternfly/react-core";
export type SwitchControlProps<T extends FieldValues, P extends FieldPath<T> = FieldPath<T>> = Omit<SwitchProps, "name" | "defaultValue" | "ref"> & UseControllerProps<T, P> & {
name: string;
label?: string;
labelIcon?: string;
labelOn: string;
labelOff: string;
stringify?: boolean;
};
export declare const SwitchControl: <T extends FieldValues, P extends FieldPath<T> = FieldPath<T>>({ labelOn, stringify, defaultValue, labelIcon, ...props }: SwitchControlProps<T, P>) => import("react/jsx-runtime").JSX.Element;