0.2.24 • Published 3 years ago

@knymbus/react-widget-builder v0.2.24

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

react-widget-builder npm package

React widget builder is a small light weight UI component widget that is use to contain componants that can share data between the components outside of the default router.

Install:

$ npm i @knymbus/react-widget-builder

Usage:

import { 
    WidgetBuilder, 
    WidgetBuilderOutlet, 
    IWidgetBuilderRoute } from "@knymbus/react-widget-builder";

import WindowOne from "./WindowOne"
import WindowTwo from "./WindowTwo"

export default function MyComponent(props: IProps){
    const widgetRoutes: IWidgetBuilderRoute[] = [
        {
            index: true,
            path: "window-1",
            window: <WindowOne />,
            transition: true
        },
        {
            path: "window-2",
            window: <WindowTwo  />,
            transition: true
        }
    ]

    const myWidgetBuilder = new WidgetBuilder({
            name: "My Widget Name",
            routes: widgetRoutes
        })

        return (
            <div>
                <WidgetBuilderOutlet builder={myWidgetBuilder} /> 
            </div>
        )
}
0.2.24

3 years ago

0.2.23

3 years ago

0.2.22

3 years ago

0.2.21

3 years ago

0.2.20

3 years ago

0.2.18

3 years ago

0.2.17

3 years ago

0.2.16

3 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago