1.1.4 • Published 2 years ago

nuxt3-navbar v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago