UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

29 lines (28 loc) 1.33 kB
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" | "xsmall" | undefined)[]; rounded: ("small" | "none" | "medium" | "full" | "large" | undefined)[]; fillMode: ("link" | "flat" | "clear" | "outline" | "solid" | undefined)[]; themeColor: ("base" | "error" | "inverse" | "success" | "primary" | "secondary" | "tertiary" | "info" | "warning" | undefined)[]; }; 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; /** @aria aria-expanded state for the popup */ expanded?: boolean; }; export type KendoMenuButtonState = { [K in (typeof states)[number]]?: boolean; }; export declare const MenuButton: KendoComponent<KendoMenuButtonProps & KendoMenuButtonState & React.HTMLAttributes<HTMLButtonElement>>; export default MenuButton;