2.4.0 • Published 4 years ago

react-simple-console v2.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Simple Console React Component

Simple Console (command window inside a page) React component allowing define custom callback for issued commands.

Install

npm install react-simple-console

Usage

import Console from "react-simple-console"

<Console
        style={{width: '500px', color: 'red', background: '#11FA88'}}
        promptString="%"
        commandHandler={(cmd) => `Command '${cmd}' executed.`}
      />

All parameters can be omitted. Defaults will be used.

Parameter commandHandler should return object, simple type or promise.

Copy/Cut/Paste support. Commands history support with up/down arrows.

2.4.0

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago