0.0.3 ā¢ Published 2 years ago
terminal-commando v0.0.3
Terminal or cli for web applications
š Homepage
āØ Demo
Install
npm install terminal-commando
Usage
import {Terminal} from 'terminal-commando';
export default function Example() {
const [output, setoutput] = useState('')
const [error, seterror] = useState('')
cost handleReset = () => {
setoutput('')
seterror('')
}
return (
<>
<button onClick={()=>setoutput('this is sample output')}>Output</button>
<button onClick={()=>seterror('this is sample error')}>Error</button>
<Terminal error={error} output={output} resetData={handleReset} />
</>
)
}
Author
š¤ Shraddha Teltumbade
- Github: @shraddha-teltumbade
š¤ Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.
Show your support
Give a āļø if this project helped you!
š License
Copyright Ā© 2022 Shraddha Teltumbade. This project is MIT licensed.