UNPKG

@chief-editor/ui

Version:

UI Component for chief editor

17 lines (16 loc) 682 B
import { UnionOmit } from '@co-hooks/util'; import React, { HTMLAttributes, ReactNode } from 'react'; export declare type renderFunc = () => ReactNode; export interface IContent { containerRef?: React.Ref<HTMLDivElement>; prefixCls: string; enableSize?: boolean; icon?: React.ReactNode; className?: string; width?: string; header?: renderFunc | React.ReactNode; footer?: renderFunc | React.ReactNode; children?: renderFunc | React.ReactNode; } export declare type IContentProps = UnionOmit<IContent, HTMLAttributes<HTMLDivElement>>; export declare const Content: (props: UnionOmit<IContent, React.HTMLAttributes<HTMLDivElement>>) => JSX.Element;