@tomerlichtash/ics-css-react
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

ICS-in-CSS

React Component for the International Code of Signals Flags

The International Code of Signals is an international system of signals and codes for use by vessels to communicate important messages regarding safety of navigation and related matters.

Wikipedia

About

ICS-in-CSS is an CSS implementation of the ICS flags, packaged in a React component.

Getting started

Install ICS-in-CSS:

npm i @tomerlichtash/ics-css-react

Components

Flag

Alphabet

<Flag
  value="alfa" /* Use letter code name, e.g. "charlie" */
  type="normal" (optional; supported types: `number` | `substitute`)
  size="md"
/>

Text

Text component to render flags in running text.

Usage:

<Text>
  Hello [[charlie]] world
</Text>

Spell

Spell component transforms a string to flags.

<Spell>
  Hello [[charlie]] world
</Spell>

Readme

Keywords

Package Sidebar

Install

npm i @tomerlichtash/ics-css-react

Weekly Downloads

15

Version

0.1.6

License

MIT

Unpacked Size

134 kB

Total Files

42

Last publish

Collaborators

  • tomerlichtash