Skip to content

govapps/mtw-nuxt-components

Repository files navigation

MTW Nuxt Components

Nuxt Tailwind Eslint

Welcome to the MTW Nuxt Components repository! This repository contains a collection of reusable components that can be integrated into Nuxt.js projects to accelerate development and maintain design consistency throughout the application.

See the components documentation on the Wiki

How to Use

1. Add in nuxt project with tailwind

# last version
pnpm add govapps/mtw-nuxt-components

# another version, exemple install version 1.0.1
pnpm add mtw-nuxt-components#semver:1.0.1

2. Add config in file nuxt.config.ts

components: [
  "~/node_modules/mtw-nuxt-components/components"
]

3. Add config in file tailwind.config.ts

module.exports = {
  content: [
    "./node_modules/mtw-nuxt-components/components/**/*.{js,vue,ts}",
  ],

3. Use the components:

To use a component in your Nuxt.js project, import it in any component where you want to use it. For example:

<template>
  <div class="text-center">
    <Text is-bold>
      Hi there!
    </text>
    <Switch class="mt-2" :value="true" />
  </div>
</template>

Development

1. Make sure to install the dependencies:

# yarn
yarn install

# npm
npm install

# pnpm
pnpm install

2. Start the development server on http://localhost:3000

npm run dev

Contribution

If you would like to contribute to this project, feel free to submit pull requests. Be sure to follow inclusion guidelines and follow existing code standards.

License

This repository is licensed under the MIT License, which means you are free to use, modify, and distribute the components according to the terms of the license.

We hope these components prove valuable for your Nuxt.js project! If you have any questions or suggestions, feel free to open an issue in this repository. Thank you for contributing and using our components!

About

This repository contains a collection of reusable components that can be integrated into Nuxt.js projects to accelerate development and maintain design consistency throughout the application.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors