Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jb-national-input

javadbat34MIT2.2.0TypeScript support: included

national input web component

jb, jb-national-input, iran, meli code, code meli, melli, کد ملی, national code input, web component

readme

jb-national-input

jb national id input(کد ملی) with proper validation superset component on jb-input , just for national id number with extra filter and ready to use validator کامپوننت ورود کد ملی

Demo in Codepen: jb-national-input

using with JS frameworks

to use this component in react see jb-national-input/react;

Installation

npm install --save jb-national-input

Usage


import 'jb-national-input';
<jb-national-input></jb-national-input>

to learn more information about this component and how to customize it like events, styling,... just read jb-input

styling

all styles come from jb-input except --jb-national-input-input-direction this may be set if you want your input to be rtl (not recommended).