react-compass-component

1.0.11 • Public • Published

react-compass-component

npm version

A fully functional Compass component for React. Based on react-compass and refactored to support latest React features and created to be 'plug and play', no extra code needed.

Compass component preview

Installation

The package can be installed via:

  • NPM: npm install react-compass-component --save
import React from "react";

import Compass from 'react-compass-component/src'

const App = () =>{
    return (
        <>
        <h1 className="">
            Compass
        </h1>
        <Compass />
        </>

    )
}

export default App

Configuration

The default Compass can be initialised by:

<Compass directionNames={['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW']}>

Compatibility

Latest compatible versions:

  • React "^18.2.0"

Local Development

TODO

License

MIT © Cristian Moyano

Package Sidebar

Install

npm i react-compass-component

Weekly Downloads

1

Version

1.0.11

License

MIT

Unpacked Size

22.4 kB

Total Files

11

Last publish

Collaborators

  • cristianmoyano.mza