UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

35 lines (34 loc) 1.4 kB
export declare const FONTICON_CLASSNAME = "k-font-icon"; declare const options: { size: ("small" | "medium" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | undefined)[]; themeColor: ("base" | "error" | "success" | "primary" | "secondary" | "tertiary" | "info" | "warning" | undefined)[]; }; export type FontIconOptions = { size?: (typeof options.size)[number]; themeColor?: (typeof options.themeColor)[number]; }; export type FontIconProps = FontIconOptions & { icon?: string; rotate?: null | '0' | '45' | '90' | '135' | '180' | '225' | '270' | '315'; flip?: null | 'v' | 'h' | 'both'; }; /** * FontIcon component - renders decorative font-based icons. * * @accessibility * - Always renders `aria-hidden="true"` as icons are decorative * - Screen readers will skip this element entirely * * @wcag 1.1.1 Non-text Content - decorative images hidden from AT */ export declare const FontIcon: { (props: FontIconProps & React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element; states: any[]; options: { size: ("small" | "medium" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | undefined)[]; themeColor: ("base" | "error" | "success" | "primary" | "secondary" | "tertiary" | "info" | "warning" | undefined)[]; }; className: string; defaultOptions: {}; }; export default FontIcon;