JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q28738F
  • License MIT

An instruction organizer react plugin based on js.bit

Package Exports

  • nibit-portable

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nibit-portable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#NibitPortable a React.JS algorithm creator based on js.bit

This is a includable version of https://nibit.chemisax.com

install

npm i --save nibit-portable

usage

<NibitPortable
    blocks={this.state.blocks}
    onChange={blocks => this.setState({blocks})}
    config={config}
/>

##block format

[
    {
        type: 'block_type',
        params: {
            param1: 'value',
            param2: 'value'
        }
    },
]

##config format

[
    {
        name: 'Block Name',
        type: 'block_type',
        description: 'This is the block description',
        color: '#ffffff',
        textColor: '#000000',
        params: [
            {
                name: 'param1',
                label: 'Param 1',
                type: 'text',
                default: 'placeholder'
            },
            {
                name: 'param2',
                label: 'Param 2',
                type: 'pulldown',
                options: [
                    {
                        label: 'Option 1',
                        value: 'option1'
                    },
                    {
                        label: 'Option 2',
                        value: 'option2'
                    }
                ]
            }
        ]
    },
]