0.1.1 • Published 2 years ago
@logo-rn/logo-text-input v0.1.1
@logo-rn/logo-text-input
allows user to enter and edit text. allows user to enter password type of text. allows user to enter and edit number type of text.
Installation
Install the component:
npm i @logo-rn/logo-text-input -s
Usage
Once installed, import the component in your application:
import {LogoTextInput, LogoDecimalInput, LogoPasswordInput} from '@logo-rn/logo-text-input';
const [value, setValue] = React.useState('');
<LogoTextInput
label="Text Here"
placeholder={"Yazı Giriniz"}
value={value}
onChangeValue={(nextValue: string) => setValue(nextValue)}
/>
const [value, setValue] = React.useState(0);
<LogoDecimalInput
label="Number Here"
placeholder={"Sayı Giriniz"}
value={value}
onChangeValue={(nextValue: string) => setValue(nextValue)}
/>
const [value, setValue] = React.useState('');
<LogoPasswordInput
label="Password Here"
placeholder={"Sayı Giriniz"}
value={value}
onChangeValue={(nextValue: string) => setValue(nextValue)} />