1.0.1 • Published 1 year ago

react-license-plate-1 v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-license-plate

A simple React component that visualizes a european (for now) license plate with the flag, country code and license plate number (id).

How to use

npm install react-license-plate

You can now import react-license-plate like so:

import LicensePlate from 'react-license-plate'
...

Available props

interface ILicensePlateProps {
  plateColor?: string;
  countryCode: string;
  countryCodeColor?: string;
  plateId: string;
  height: number;
}
PropDefaultValue
plateColor#fffHEX
countryCodemax. 3 characters
countryCodeColor#fffHEX
plateIdText
heightpx

Examples

Code:

<LicensePlate countryCode="D" plateId="KA-PA 777" height={150} />

Result:

Example One

Code:

<LicensePlate
  plateColor="orange"
  countryCode="NL"
  plateId="KA-PA 777"
  height={150}
/>

Result:

Example Two

1.0.1

1 year ago

1.0.0

1 year ago