@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
23 lines (22 loc) • 916 B
TypeScript
import { KendoComponent } from '../_types/component';
export declare const SWITCH_CLASSNAME = "k-switch";
declare const states: ("focus" | "disabled" | "checked" | "hover")[];
declare const options: {
size: ("small" | "medium" | "large")[];
trackRounded: ("small" | "medium" | "full" | "large")[];
thumbRounded: ("small" | "medium" | "full" | "large")[];
};
export type KendoSwitchOptions = {
size?: (typeof options.size)[number] | null;
trackRounded?: (typeof options.trackRounded)[number] | null;
thumbRounded?: (typeof options.thumbRounded)[number] | null;
};
export type KendoSwitchProps = KendoSwitchOptions & {
onLabel?: string;
offLabel?: string;
};
export type KendoSwitchState = {
[K in (typeof states)[number]]?: boolean;
};
export declare const Switch: KendoComponent<KendoSwitchProps & KendoSwitchState & React.HTMLAttributes<HTMLSpanElement>>;
export default Switch;