react-indeema-widget

React Component Widget

Usage no npm install needed!

<script type="module">
  import reactIndeemaWidget from 'https://cdn.skypack.dev/react-indeema-widget';
</script>

README

Introduction

React Widget Component

Installation

npm install --save react-indeema-widget

Example

render () {
  return (
    <Widget
      edit={this.onEditItem}
      remove={this.onRemoveItem(data.i)}
      settings={this.onSettingItem(data.i)}
      isPropertySidebar={this.state.property && data.i === this.state.widgetInd}
      w={d.w}
      h={d.h}
      type={data.type}
      name={data.name}
    />
  );
}