@dcl/react-ecs
Version:
Decentraland ECS
26 lines (25 loc) • 671 B
TypeScript
import { ReactEcs } from '../../react-ecs';
import { EntityPropTypes } from '../types';
import { UiInputProps } from './types';
/**
* @public
* Input component
*
* An Input is a field used to obtain a response from a user.
*
* @example
<Input
placeholder="Please enter your email"
onChange={(value) => {
email = value
}}
onSubmit={(value) => {
email = value
}}
uiBackground={{ color: Color4.Red() }}
uiTransform={{ width: 200, height: 36 }}
value={textValue}
/>
*
* @category Component
*/ export declare function Input(props: EntityPropTypes & Partial<UiInputProps>): ReactEcs.JSX.Element;