2.2.1 • Published 12 months ago

@lawsafrica/law-widgets-react v2.2.1

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

@lawsafrica/law-widgets-react

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

Installation

npm

npm install @lawsafrica/law-widgets-react

OR

yarn

yarn add @lawsafrica/law-widgets-react

Getting started

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

import { LaTableOfContents } from "@lawsafrica/law-widgets-react";

function App() {
  const items = [
    {
      title: 'Entire document',
      children: [
        {
          title: 'Ch. 1 – ',
          children: [
            {
              title: 'Part B',
            },
          ],
        },
        {
          title: 'Ch. 2 – ',
        },
      ],
    }
  ]
  return (
    <div>
      <LaTableOfContents items={items}/>
    </div>
  );
}

export default App;

List of components

View more examples of our various components.

Content components

Behaviour components

2.2.1

12 months ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.6.0

1 year ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago