UNPKG

@dcl/react-ecs

Version:
16 lines (15 loc) 505 B
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; }