0.3.8 • Published 10 months ago

@gladesinger/vue3-material v0.3.8

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

vue3-material

Vue material package converted to vue 3.

The package contains a collection of vue material components (https://github.com/vuematerial/vue-material) converted to vue3. Special thanks to the (https://github.com/mikimoresi/vue3-material) for providing some of the components. Currently converted the following components:

  • Avatar
  • Badge
  • Button
  • Card
  • Content
  • Datepicker
  • Dialog
  • Divider
  • Empty State
  • Forms: Checkbox, File, Input & Textarea
  • Icon
  • List
  • Menu
  • Progress: Bar, Spinner
  • Speed Dial
  • Tabs
  • Toolbar
  • Tooltip

Some of the components don't work with SSR, for example DatePicker, so you should wrap it with ClientOnly if you're using Nuxt.

To install use npm i @gladesinger/vue3-material

Then set up a plugin or import components directly. Example of the plugin for nuxt 3 plugins/vue3-material.js:

import { defineNuxtPlugin } from '#app';
import VueMaterial from '@gladesinger/vue3-material';
import '@gladesinger/vue3-material/dist/style.css';
import '@gladesinger/vue3-material/dist/theme/default.css';

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(VueMaterial);
})

Then in nuxt.config.ts:

plugins: [
    '~/plugins/vue-material.js'
]

Or you can import the components separately:

import { defineNuxtPlugin } from '#app';
import { MdCard, MdRipple, MdButton, MdIcon, MdProgress, MdTabs, MdDatepicker, MdDialog, MdContent } from '@gladesinger/vue3-material';
import '@gladesinger/vue3-material/dist/style.css';
import '@gladesinger/vue3-material/dist/theme/default.css';

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(MdCard);
  nuxtApp.vueApp.use(MdRipple);
  nuxtApp.vueApp.use(MdButton);
  nuxtApp.vueApp.use(MdIcon);
  nuxtApp.vueApp.use(MdProgress);
  nuxtApp.vueApp.use(MdTabs);
  nuxtApp.vueApp.use(MdDatepicker);
  nuxtApp.vueApp.use(MdDialog);
  nuxtApp.vueApp.use(MdContent);
})
0.3.8

10 months ago

0.3.7

10 months ago

0.3.6

11 months ago

0.3.5

11 months ago

0.3.4

11 months ago

0.3.3

11 months ago

0.3.1

11 months ago

0.3.0

11 months ago

0.2.9

11 months ago

0.2.8

11 months ago

0.2.7

11 months ago

0.2.6

11 months ago

0.2.5

11 months ago

0.2.4

11 months ago

0.2.3

11 months ago

0.2.2

11 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.1.9

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

12 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago