1.0.4 • Published 6 months ago

low-code-react v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

low-code-react

React component to make your react app low-code with Whatbuilds' Free Tool Builder into your web app

How to Use

import React from 'react';
import LowCodeComponent from 'low-code-react';

class Example extends React.Component {
  handleToolResponse = (data) => {
    // Handle tool response data here
    console.log('Tool Response:', data);
  };

  render() {
    return (
      <div>
        <h1>Your App</h1>
        <LowCodeComponent
          onToolResponse={this.handleToolResponse}
          userDictionary={{ userId: 123 }}
          apiKey="your-api-key"
          appName="your-app-name"
        />
      </div>
    );
  }
}

export default Example;

Props

PropTypeRequiredDefaultDescription
onToolResponseFunctionYes-Callback function to handle tool responses from the iframe.
userDictionaryObjectYes-User dictionary to be passed to the iframe.
apiKeyStringYes-Your API key for authentication.
delayNumberNo1000Optional delay before sending data to the iframe, in milliseconds.
containerStyleObjectNo-Optional inline style for the container div.
widthStringNo-Optional width for the iframe.
heightStringNo-Optional height for the iframe.
appNameStringYes-Name of the Whatbuilds app to load in the iframe.

Creating a new tool

Use Whatbuilds' Free Tool Builder to build admin panels, internal tools, and dashboards etc and pass the appName & API key to LowCode Component.

Installation

You can install this package via npm:

npm install low-code-react

License

This project is licensed under the MIT License - see the LICENSE file for details.

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago