@chief-editor/ui
Version:
UI Component for chief editor
20 lines (19 loc) • 778 B
TypeScript
import { TreeMapState } from '@co-hooks/tree-map';
import { OptionState } from '@rc-hooks/select';
import { UnionOmit } from '@co-hooks/util';
import React, { HTMLAttributes } from 'react';
export interface IListItem {
prefixCls: string;
checkable?: boolean;
chosen?: boolean;
readonly?: boolean;
disabled?: boolean;
state?: TreeMapState | OptionState;
className?: string;
onCheckboxChange?: (checked: boolean) => void;
children?: (() => React.ReactNode) | React.ReactNode;
level?: number;
domRef?: React.Ref<HTMLDivElement>;
}
export declare type IListItemProps = UnionOmit<IListItem, HTMLAttributes<HTMLDivElement>>;
export declare const ListItem: (props: UnionOmit<IListItem, React.HTMLAttributes<HTMLDivElement>>) => JSX.Element;