1.5.1 • Published 5 months ago

@lawsafrica/law-widgets-vue v1.5.1

Weekly downloads
-
License
LGPL-3.0-or-later
Repository
github
Last release
5 months ago

@lawsafrica/law-widgets-vue

Vue3 component wrapper library built from @lawsafrica/law-widgets

Installation

npm

npm install @lawsafrica/law-widgets-vue

OR

yarn

yarn add @lawsafrica/law-widgets-vue

In the root of your vue project, create a file called vue.config.js and add the following code:

module.exports = {
  chainWebpack: config => config.resolve.symlinks(false)
}

Getting started

Here is a basic example of how to use LaTableOfContents in Vue3:

<template>
  <LaTableOfContents :items="items" />
</template>

<script>
import { LaTableOfContents } from "@lawsafrica/law-widgets-vue";
export default {
  components: {
    LaTableOfContents
  },
  data: () => ({
    items: [
      {
        title: 'Entire document',
        children: [
          {
            title: 'Ch. 1 – ',
            children: [
              {
                title: 'Part B',
              },
            ],
          },
          {
            title: 'Ch. 2 – ',
          },
        ],
      }
    ]
  })
}
</script>

List of components

View more examples of our various components.

Content components

Behaviour components

1.5.1

5 months ago

1.5.0

10 months ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago