Skip to content

Kaung-Myat-Hun/react-b-terminal

Repository files navigation

react-b-terminal

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save react-bate-terminal --force

Usage

import { useState } from 'react'
import './App.css'
import { BTerminal } from 'react-bate-terminal'

function App() {
  const [show, setShow] = useState(false)
  const data = [{
    command : "hello",
    output: "world"
  },
  {
    command : "close",
    output: "close"
  },
  {
    command : "help",
    output : "this is help message for your terminal"
  }
  ]
  const close = () =>{ // command is close and exit this is default 
    setShow(false);
  }
  return (
    <div>
      <BTerminal close={close} main="Bate Thar" data={data} />
    </div>
  )
}

export default App

License

MIT © https://github.com/Kaung-Myat-Hun

About

This is React UI Component Libraray

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published