@thrivehive/magnet

0.1.23 • Public • Published

𝗠 🧲 𝗚 𝗡 𝗘 𝗧

Shared component library for ThriveHive lead magnets. Build with ❤️ and the following:

  • Vue
  • Vuetify 2
  • Storybook

Installation

With NPM:

npm install @thrivehive/magnet

Or Yarn:

yarn add @thrivehive/magnet

Set up Vue, Vuetify, and Magnet in your application:

import Vue from 'vue';
import Vuetify from 'vuetify';
import Magnet, { vuetify } from '@thrivehive/magnet';
import '@thrivehive/magnet/dist/magnet.css';

Vue.use(Vuetify);
Vue.use(Magnet);

new Vue({
  vuetify
  render: (h) => h(App)
}).$mount('#app');

Note that by installing Magnet in this way, all Magnet components are globally registered. The component documentation include local component registration as an example, but it's not necessary with Vue.use(Magnet);

/@thrivehive/magnet/

    Package Sidebar

    Install

    npm i @thrivehive/magnet

    Weekly Downloads

    32

    Version

    0.1.23

    License

    MIT

    Unpacked Size

    2.74 MB

    Total Files

    107

    Last publish

    Collaborators

    • dhardy
    • nick-thrivehive
    • alithrivehive
    • jvindingthrivehive
    • martinez6481
    • miketalley
    • chrisknepper