npm i @encoreskytech/react-char-limit-hint
or
yarn add @encoreskytech/react-char-limit-hint
import CharLimitInput from "@encoreskytech/react-char-limit-hint";
function App() {
return (
<CharLimitInput charLimit={11} />
);
}
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 |