Iran-License-Plate
Iran-License-Plate copied to clipboard
A general react component for Iran license plate.
Iran Lisence Plate

Iran Lisence Plate is a React Component
based on Typescript
to display Iran car plaque appropriately depending on the serial number.
Features
- β React Component.
- β Typescript.
- π Validating license serial.
- π Include free city license plate.
- π Responsive and mobile friendly.
- π Colorize plate.
Installation
This module is distributed via npm which is bundled with node and should be installed as one of your project's dependencies
:
npm i iran-license-plate
This package also depends on
react
. Please make sure you have it installed as well.
π¨Shortcut: you can see all options by visiting : storybookπ¨
Usage
import IranLicensePlate from "iran-license-plate";
import "iran-license-plate/dist/License.css";
function App() {
return (
<div>
<IranLicensePlate serial="IR15-546T55" />
</div>
);
}
Avalilible Params
property | type | description |
---|---|---|
isLoading |
boolean /undefined |
isshow loading indicator |
isUnknown |
boolean /undefined |
preserve unknown situation |
serial |
string |
the serial number of license plate for all options please visit : https://majidalinejad.github.io/Iran-License-Plate/ |
Contributors
This project follows the all contributors specification. Contributions of any kind welcome!
Documented with :
WIKI PAGE
for more information please visit wiki page
LICENSE
MIT