@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
31 lines (30 loc) • 1.13 kB
TypeScript
export declare const CHECKBOX_CLASSNAME = "k-checkbox";
declare const states: ("required" | "focus" | "invalid" | "disabled" | "checked" | "hover" | "valid" | "indeterminate")[];
declare const options: {
size: ("small" | "medium" | "large")[];
rounded: ("small" | "medium" | "full" | "large")[];
};
export type CheckboxProps = CheckboxOptions & {
id?: string;
};
export type CheckboxState = {
[K in (typeof states)[number]]?: boolean;
};
export type CheckboxOptions = {
size?: (typeof options.size)[number] | null;
rounded?: (typeof options.rounded)[number] | null;
};
export declare const Checkbox: {
(props: CheckboxProps & CheckboxState & React.HTMLAttributes<HTMLInputElement>): import("react/jsx-runtime").JSX.Element;
states: ("required" | "focus" | "invalid" | "disabled" | "checked" | "hover" | "valid" | "indeterminate")[];
options: {
size: ("small" | "medium" | "large")[];
rounded: ("small" | "medium" | "full" | "large")[];
};
className: string;
defaultOptions: {
size: "medium";
rounded: "medium";
};
};
export default Checkbox;