1.0.29 • Published 5 years ago

@crpt/react-input v1.0.29

Weekly downloads
10
License
MIT
Repository
github
Last release
5 years ago

react-input

Travis npm package Coveralls

React input component.

Usage

import { Input } from  "@crpt/react-input";


<Input onChange={newVal => alert("newVal:", newVal)} />
PropNameDescriptionExample
disabled: BooleanCan be disabled.<Input disabled />
isError: BooleanChanges colors to error.<Input isError={true} />
defaultValue: StringPreset value.<Input defaultValue="vasya@gmail.com" />
placeholder: StringPlaceholder value.<Input placeholder="Имя пользователя" />
onChange: FunctionCallback for change event.<Input onChange={val => alert(val)} />
onUpdate: FunctionFires on enter press or blur.<Input onUpdate={val => alert(val)} />
onEnterKey: FunctionFires on enter key press.<Input onEnterKey={val => alert(val)} />
type: StringInput type attribute. For example type="text" and type="password".<Input type="password" />
rightIcon: StringRight icon.<Input rightIcon={<Icon type="calendar"/>} />
mask: StringInput mask.<Input mask="+7 (999) 999-99-99" />
maskOptions: ObjectInput mask options.<Input mask="+7 (999) 999-99-99" maskOptions={{numericInput: true, placeholder: '0'}} />
1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

0.0.1

6 years ago