UNPKG

@chief-editor/ui

Version:

UI Component for chief editor

15 lines (14 loc) 660 B
import { UnionOmit } from '@co-hooks/util'; import React, { InputHTMLAttributes, ReactNode, Ref } from 'react'; import { IInputWrapper } from '../input-wrapper'; export declare const useInputAddOn: (type: string, node: React.ReactNode) => React.ReactNode; export interface IInput extends Omit<IInputWrapper<HTMLInputElement>, 'domRef' | 'clear'> { domRef?: Ref<HTMLElement>; clearable?: boolean; prepend?: ReactNode; append?: ReactNode; invalid?: boolean; needGrouped?: boolean; } export declare type IInputProps = UnionOmit<IInput, InputHTMLAttributes<HTMLSpanElement>>; export declare function Input(props: IInputProps): JSX.Element;