@etidbury/react-floating-menu
v0.0.15-alpha
Published
<a href="https://react-floating-menu.vercel.app/" target="_blank"><img src="https://raw.githubusercontent.com/storybooks/brand/master/badge/badge-storybook.svg"></a>
Readme
<FloatingMenu />
Usage
Install dependency
yarn add @etidbury/react-floating-menu npm install @etidbury/react-floating-menuAdd to your project
import { FloatingMenuContainer,FloatingMenu } from '@etidbury/react-floating-menu' // ... <FloatingMenuContainer> // ...page content <FloatingMenu items={[...]} /> </FloatingMenuContainer> // ...That's it.
License
This code is released under the MIT license - feel free to use it.
Contribute
- Fork or clone this repository
- If using VS Code, install recommended extensions
yarn installyarn start
yarn Scripts
test- run unit teststest:cover- run unit tests with test coveragelint- checkeslintandprettierruleslint:fix- autofix unmeteslintandprettierruleslocal-pack- create thetgzpackage locally to test consumers without publishingstart- start the storybook server and automatically open in browsercompile- standard typescript compiletscnow-build- used by Zeit when building your storybook for deployment (do not rename this script)
Before each commit, husky and lint-staged will automatically lint your staged ts, tsx, js, jsx files.
Please contribute any improvements or fixes to this project!
To make sure you have a pleasant experience, please read the code of conduct. It outlines core values and beliefs and will make working together a happier experience.
