@carlosdevpereira/mr-components

1.10.0 • Public • Published

Mr. Components Icon

Mr. Components

Tests Coverage License: MIT

Docs | @Next

Installation

The @mr-components package can be installed by running:

npm install --save-dev @carlosdevpereira/mr-components

How to use

To start using the components, you can either:

Register the components globally in your main.js file:

import App from './App.vue'
import { createApp } from 'vue'

import '@carlosdevpereira/mr-components/dist/style.css'
import UseMrComponents from '@carlosdevpereira/mr-components'
// other imports

let app = createApp(App)
UseMrComponents(app)

Register only the components you need:

import App from './App.vue'
import { createApp } from 'vue'

import '@carlosdevpereira/mr-components/dist/style.css'
import { Button, Checkbox } from '@carlosdevpereira/mr-components'
// other imports

let app = createApp(App)
app.component('Button', Button)
app.component('Checkbox', Checkbox)

Import the components directly in your Single File Components:

<template>
  <div>
    <button>Click me</button>
  </div>
</template>

<script>
import '@carlosdevpereira/mr-components/dist/style.css'
import { Button } from '@carlosdevpereira/mr-components'

export default {
  components: {
    Button,
  },

  // ...
}
</script>

Checkout the available components:

Mr. Components Icon

This icon has been designed using resources from Flaticon.com

Readme

Keywords

none

Package Sidebar

Install

npm i @carlosdevpereira/mr-components

Weekly Downloads

1

Version

1.10.0

License

MIT

Unpacked Size

1.36 MB

Total Files

7

Last publish

Collaborators

  • carlosdevpereira