@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
20 lines (19 loc) • 872 B
TypeScript
import { CSSProperties } from 'react';
import type { FlexboxProps } from 'react-layout-kit';
import type { ControlInputProps } from "./ControlInput";
export interface EditableTextProps extends Omit<FlexboxProps, 'onChange' | 'onBlur' | 'onFocus'>, Pick<ControlInputProps, 'onChange' | 'value' | 'onChangeEnd' | 'onValueChanging' | 'texts' | 'variant' | 'onBlur' | 'onFocus' | 'size'> {
className?: string;
classNames?: {
container?: string;
input?: string;
};
editing?: boolean;
inputProps?: Omit<ControlInputProps, 'onChange' | 'value' | 'onChangeEnd' | 'onValueChanging' | 'texts' | 'className' | 'style' | 'onBlur' | 'onFocus' | 'size'>;
onEditingChange?: (editing: boolean) => void;
showEditIcon?: boolean;
style?: CSSProperties;
styles?: {
container?: CSSProperties;
input?: CSSProperties;
};
}