0.2.24 • Published 2 years ago
@knymbus/react-widget-builder v0.2.24
react-widget-builder 
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
2 years ago
0.2.23
2 years ago
0.2.22
2 years ago
0.2.21
2 years ago
0.2.20
2 years ago
0.2.18
2 years ago
0.2.17
2 years ago
0.2.16
2 years ago
0.2.15
2 years ago
0.2.14
2 years ago
0.2.13
2 years ago
0.2.12
2 years ago
0.2.11
2 years ago
0.2.10
2 years ago
0.2.9
2 years ago
0.2.8
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.1.18
2 years ago
0.1.17
2 years ago
0.1.16
2 years ago
0.1.14
2 years ago
0.1.13
2 years ago
0.1.12
2 years ago
0.1.11
2 years ago
0.1.10
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago