1.0.9 • Published 4 years ago

@mesg-components/menu v1.0.9

Weekly downloads
10
License
-
Repository
-
Last release
4 years ago

@MESG-COMPONENTS/MENU

Install

npm install @mesg-components/menu or yarn add @mesg-components/menu

Properties

  • logo: String, Required, -> banner to display on the footer.
  • isNuxt: Boolean, Optional, -> isNuxt declare for nuxtjs framework to using nuxt-link.
  • items: Array of object, Optional, -> items to display on the footer.
    • Object inside items:
      • text: String , Required, to display menu title
      • to: String, Required, link path
      • type: String, Optional, to display title at type button
      • subMenu: Array of object, Optional, Example [{ text: '',to: '' }, { text: '',to: '' },...], to display dropdown sub-menu

Example

import logo from '../assets/img/MESG-logo-horizontal-purple.svg'

const items = [
  {
    text: 'Technology',
    to: '#',
    subMenu: [
      { text: 'Orchestrator', to: '' },
      { text: 'SDK', to: '' },
      { text: 'Marketplace', to: '' },
      { text: 'Enterprise', to: '' }
    ]
  },
  {
    text: 'Developers',
    to: '#',
    subMenu: [
      { text: 'Orchestrator', to: '' },
      { text: 'SDK', to: '' },
      { text: 'Marketplace', to: '' },
      { text: 'Enterprise', to: '' }
    ]
  },
  { text: 'Showcase', to: '/' },
  { text: 'Contributions', to: '/' },
  { text: 'Token' },
  { text: 'Get Started', to: '/', type: 'button' }
]

Default:

<template>
  <menu :banner="banner" :items="items" />
</template>

Nuxt Framework:

<template>
  <menu :banner="banner" :items="items" is-nuxt />
</template>
1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago