1.1.4 • Published 3 years ago

nuxt3-navbar v1.1.4

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

Example of a UI component library in Nuxt 3

Setup

Create a new Nuxt 3 project

npx nuxi init my-project

Install the custom Nuxt 3 UI library

npm install nuxt3-navbar

Setup TailwindCSS

TailwindCSS

Configure your project to use the library

Edit the nuxt.config.ts file:

import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
    buildModules: ['nuxt3-navbar/nuxt'],
})

Use components

<n3-navbar />
<n3-navbar-body :hiring="hiringShow.hiring" @changeHiring="handleHiring"/>
<n3-navbar-footer />
<script lang="js">
  import "~/assets/css/tailwind.css"
  import { showHiring } from '@/stores/hiring'

  export default {
    setup(){
        const hiringShow = showHiring()
        return {hiringShow}
    },
    methods: {
      handleHiring() {
        showHiring().changeHiring()
      }
    }
  }
</script>
1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago