@chief-editor/ui
Version:
UI Component for chief editor
22 lines (21 loc) • 743 B
TypeScript
import { UnionOmit } from '@co-hooks/util';
import { HTMLAttributes, ReactNode } from 'react';
export declare type FormAlign = 'left' | 'right';
export declare type FormStatus = 'success' | 'warning' | 'error' | 'validating';
export interface IFormContainer {
hasLabel?: boolean;
label?: ReactNode;
labelWidth?: number;
align?: FormAlign;
tooltip?: ReactNode;
colon?: boolean;
help?: ReactNode;
hint?: ReactNode;
status?: FormStatus;
required?: boolean;
level?: number;
inline?: boolean;
vertical?: boolean;
}
export declare type IFormContainerProps = UnionOmit<IFormContainer, HTMLAttributes<HTMLDivElement>>;
export declare function FormContainer(props: IFormContainerProps): JSX.Element;