UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

16 lines (15 loc) 565 B
import type { ThemeProps } from 'jamis-core'; import type { PropsWithChildren } from 'react'; export interface InputBoxProps extends PropsWithChildren, ThemeProps, Omit<React.DOMAttributes<HTMLInputElement>, 'prefix' | 'onChange'> { borderMode?: 'full' | 'half' | 'none'; children?: JSX.Element; clearable?: boolean; disabled?: boolean; hasError?: boolean; onChange?: (value: string) => void; onClear?: (e: React.MouseEvent<any>) => void; placeholder?: string; prefix?: JSX.Element; readOnly?: boolean; value?: string; }