@dcl/react-ecs
Version:
Decentraland ECS
16 lines (15 loc) • 505 B
TypeScript
import { PBUiInput } from '@dcl/ecs';
import { TextAlignType, UiFontType } from '../Label/types';
import { ScaleUnit } from '../types';
/**
* @public
*/
export interface UiInputProps extends Omit<PBUiInput, 'font' | 'textAlign' | 'fontSize'> {
/** function to be called on value change */
onChange?(value: string): void;
/** function to be called on text field submit */
onSubmit?(value: string): void;
font?: UiFontType;
textAlign?: TextAlignType;
fontSize?: ScaleUnit;
}