@encoreskytech/react-char-limit-hint
v1.0.8
Published
## Installation
Downloads
7
Readme
Text Char limit Hint
Installation
npm i @encoreskytech/react-char-limit-hint
or
yarn add @encoreskytech/react-char-limit-hint
Examples
import NodeCharLimitInput from "@encoreskytech/react-char-limit-hint";
function App() {
return (
<NodeCharLimitInput charLimit={11} />
);
}
Props
| Property | Type (Default)
| Description |
| ------------------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
| charLimit | number | Length of string which you want to limit |
| parentContainerStyle | string | ClassName for parent component of input component |
| inputStyle | string | ClassName for input component |
| hintStyle | string | ClassName for hint text component |
| onChange | (text) => void | callback function