fictoan-react
Version:
A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.
18 lines (17 loc) • 833 B
TypeScript
import React from "react";
import { BaseInputComponentProps } from '../BaseInputComponent/constants';
export interface SwitchCustomProps {
size?: "small" | "medium" | "large";
}
export type SwitchElementType = HTMLInputElement;
export type SwitchProps = Omit<BaseInputComponentProps<SwitchElementType>, keyof SwitchCustomProps | "as" | "onChange" | "value"> & SwitchCustomProps & {
onChange?: (checked: boolean) => void;
checked?: boolean;
defaultChecked?: boolean;
};
export declare const Switch: React.ForwardRefExoticComponent<Omit<BaseInputComponentProps<HTMLInputElement>, "as" | "size" | "value" | "onChange"> & SwitchCustomProps & {
onChange?: (checked: boolean) => void;
checked?: boolean;
defaultChecked?: boolean;
} & React.RefAttributes<HTMLInputElement>>;
//# sourceMappingURL=Switch.d.ts.map