Nighttime Peanut Migrations

    react-autoql

    7.1.1 • Public • Published

    React Components for AutoQL

    npm latest version Circle CI known vulnerabilities

    semantic-release commitizen friendly

    Documentation

    Full documentation can be found here

    Demo

    A live demo can be found here

    Components

    DataMessenger

    Deliver the power of AutoQL to your users through Data Messenger, a state-of-the-art conversational interface you can easily build into your existing application.

    Dashboard

    Democratize the data in your application and deliver extended reporting and analytics capabilities to all your users with Dashboards you can build and deploy in a snap.

    QueryInput

    Query Input is an input box component that can be placed anywhere in the DOM. The QueryInput component works together with the QueryOutput component to automatically handle certain interactions with the data.

    QueryOutput

    Query Output is a data visualization widget that accepts the response from our API's query endpoint.

    Quick Start

    Using npm:

    $ npm install react-autoql
    

    Using yarn:

    $ yarn add react-autoql
    

    Import the component and the stylesheet

    import { DataMessenger } from 'react-autoql';
    
    import 'react-autoql/dist/autoql.esm.css'
    

    Render the component and control the visibility

    export default class App extends Component {
      state = {
        isVisible: false
      }
    
      onHandleClick = () => {
        this.setState({
          isVisible: !this.state.isVisible
        })
      }
    
      render = () => {
        return (
          <DataMessenger
            isVisible={this.state.isVisible}
            onHandleClick={this.onHandleClick}
            authentication={{
              apiKey: "your-api-key"
              domain: "https://yourdomain.com"
              token: "yourToken"
            }}
          />
        )
      }
    }
    

    Keywords

    none

    Install

    npm i react-autoql

    DownloadsWeekly Downloads

    52

    Version

    7.1.1

    License

    ISC

    Unpacked Size

    1.59 MB

    Total Files

    9

    Last publish

    Collaborators

    • nikkimeganmoore
    • bwozak
    • azhouchata