nibit-portable
v0.1.12
Published
An instruction organizer react plugin based on js.bit
Downloads
3
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'
}
]
}
]
},
]