@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
29 lines (28 loc) • 1.25 kB
TypeScript
import { KendoComponent } from '../_types/component';
export declare const MENUBUTTON_CLASSNAME = "k-menu-button";
declare const states: ("active" | "focus" | "disabled" | "selected" | "hover")[];
declare const options: {
size: ("small" | "medium" | "large")[];
rounded: ("small" | "medium" | "full" | "large")[];
fillMode: ("link" | "flat" | "clear" | "outline" | "solid")[];
themeColor: ("base" | "error" | "inverse" | "success" | "dark" | "light" | "primary" | "secondary" | "tertiary" | "info" | "warning")[];
};
export type KendoMenuButtonOptions = {
size?: (typeof options.size)[number] | null;
rounded?: (typeof options.rounded)[number] | null;
fillMode?: (typeof options.fillMode)[number] | null;
themeColor?: (typeof options.themeColor)[number] | null;
};
export type KendoMenuButtonProps = KendoMenuButtonOptions & {
icon?: string;
text?: string;
showArrow?: boolean;
arrowIconName?: string;
popup?: React.JSX.Element;
opened?: boolean;
};
export type KendoMenuButtonState = {
[K in (typeof states)[number]]?: boolean;
};
export declare const MenuButton: KendoComponent<KendoMenuButtonProps & KendoMenuButtonState & React.HTMLAttributes<HTMLButtonElement>>;
export default MenuButton;