0.0.5 • Published 2 years ago

@cebus/react-menu v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Menu

The Menu related components allow you to display information over a given element.

Use

  1. Install the @cebus/react-menu component.

Using NPM

npm install @cebus/react-menu

Using Yarn

yarn add @cebus/react-menu
  1. Install the @cebus/react-provider and our theme tokens from @cebus/react-theme

  2. Set up the provider in your app:

import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
  1. Integrate the Menu components.
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
import { Menu } from '@cebus/react-menu'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
      <Menu>
      // Add your menu here
      </Menu>
    <Provider>
  )
}

API

The Menu API extends off of the FluentUI Menu.