@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
26 lines (25 loc) • 894 B
TypeScript
import React from 'react';
import { KendoComponent } from '../_types/component';
export declare const TREEVIEWITEM_CLASSNAME = "k-treeview-item";
declare const states: ("focus" | "disabled" | "selected" | "hover")[];
export type KendoTreeviewItemProps = {
leafClassName?: string;
children?: React.ReactNode;
hasChildren?: boolean;
expanded?: boolean;
loading?: boolean;
text?: string;
showIcon?: boolean;
icon?: string;
showCheckbox?: boolean;
checked?: boolean;
dir?: 'ltr' | 'rtl';
level?: number;
/** @aria aria-selected="true" when node is selected */
ariaSelected?: boolean;
};
export type KendoTreeviewItemState = {
[K in (typeof states)[number]]?: boolean;
};
export declare const TreeviewItem: KendoComponent<KendoTreeviewItemProps & KendoTreeviewItemState & React.HTMLAttributes<HTMLLIElement>>;
export default TreeviewItem;