@pongo-ui/react-menu
TypeScript icon, indicating that this package has built-in type declarations

0.1.10 • Public • Published

Menu

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

Use

  1. Install the @pongo-ui/react-menu component.

Using NPM

npm install @pongo-ui/react-menu

Using Yarn

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

  2. Set up the provider in your app:

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

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
  1. Integrate the Menu components.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { Menu } from '@pongo-ui/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.

Readme

Keywords

none

Package Sidebar

Install

npm i @pongo-ui/react-menu

Weekly Downloads

2

Version

0.1.10

License

MIT

Unpacked Size

247 kB

Total Files

432

Last publish

Collaborators

  • pongobuild
  • czearing