1.0.1 • Published 2 years ago
@fplan/menu v1.0.1
How to use the @fplan/menu package
- Install the package using
pnpm add @fplan/menu - These atoms can be filled with the following contents:
menuBannerAtom- company logomenuContentAtom- menu itemsmenuTitleAtom— menu title
Notes
The Menu component from @fplan/components is already registered as a layout component in the package @fplan/search. This means that the menu is already available in your application if you use the @fplan/search package.
The menuContentAtom atom has a default value, but it can be changed (replaced or added).
Additionally, you can use the menuOpenAtom to open/close the menu, it already works by default.