0.1.5 • Published 8 years ago
chimeraprime-sharco v0.1.5
Chimera Prime Shared Components
This project contains set of components which can be reusable in many React applications.
Install
npm install --save-dev chimeraprime-sharcoAvailable components
Project contains the following components:
FormattedInput
Shows an input with number formatting
| Parameter | Type | Description |
|---|---|---|
| value | number | value of the input |
| numeralDecimalMark | string | decimal separator sign, default: '.' |
| stripLeadingZeroes | boolean | decimal separator sign, default: 'true' |
| numeralPositiveOnly | boolean | decimal separator sign, default: 'true' |
| delimiter | string | thousands delimiter sign, default: '' |
| className | string | additional class name of input field |
| onChange | function | function which handles input changes |
PasswordWithPreview
Shows password field with possibility to show password
| Parameter | Type | Description |
|---|---|---|
| value | number | value of the input |
| className | string | additional class name of input field |
| ccontainerClassName | string | additional class name of container |
| onChange | function | function which handles input changes |
| iconComponent | string | component with preview icon; if not provided - standard css eye icon will be used |