21 lines
573 B
TypeScript
21 lines
573 B
TypeScript
import React from 'react'
|
|
import { LabelInput, WrapperInputText } from './styles';
|
|
|
|
type IInputText = {
|
|
children?: object;
|
|
placeholder: string;
|
|
label: string;
|
|
onChangeText?: any,
|
|
value?: any
|
|
}
|
|
export const InputText = (props: IInputText)=>{
|
|
|
|
const {children, placeholder, label, onChangeText, value} = props
|
|
|
|
return (
|
|
<>
|
|
<LabelInput>{props.label}</LabelInput>
|
|
<WrapperInputText value={props.value} onChangeText={props.onChangeText} placeholder={props.placeholder}></WrapperInputText>
|
|
</>
|
|
)
|
|
} |