1.2.17 • Published 12 months ago
react-terminal-history v1.2.17
React Terminal History
A Powerful Terminal Log Component for React Applications compatible with SSR
Installation
npm install react-terminal-history
Usage
import ReactTerminalHistory from "react-terminal-history";
const fakeData = ["Line1", "Line2"];
function App() {
return (
<>
<div className="flex justify-center items-center h-screen p-20">
<ReactTerminalHistory data={fakeData} title="Logs" />
</div>
</>
);
}
export default App;
Props
Name | Type | Required | Default | Description |
---|---|---|---|---|
data | array | false | [] | Array of strings to be displayed |
classes | objects | false | {} | Classes to be applied to the terminal |
title | string | false | "" | Title of the terminal |
renderLine | func | false | null | Function to render each terminal line |
showSkeleton | bool | false | false | Show skeleton while is scrolling |
loading | bool | false | false | Show loading element while load data |
notFoundContent | string | false | "No history found" | Not found content |
optionIcon | node | false | undefined | Option icon |
Classes Keys
Name | Type | Required | Default | Description |
---|---|---|---|---|
container | string | false | '' | Classes to be applied to the terminal container |
header | string | false | '' | Classes to be applied to the terminal header |
content | string | false | '' | Classes to be applied to the terminal content |
input | string | false | '' | Classes to be applied to the terminal input |
Demo
react-terminal-history-ac7k.vercel.app/
License
React Terminal History is MIT licensed.
1.2.17
12 months ago
1.2.8
1 year ago
1.2.7
1 year ago
1.2.6
1 year ago
1.2.9
1 year ago
1.2.12
1 year ago
1.2.10
1 year ago
1.2.11
1 year ago
1.2.16
1 year ago
1.2.14
1 year ago
1.2.15
1 year ago
1.2.5
2 years ago
1.2.0
2 years ago
1.1.1
2 years ago
1.0.2
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.2.4
2 years ago
1.0.6
2 years ago
1.2.3
2 years ago
1.1.4
2 years ago
1.0.5
2 years ago
1.2.2
2 years ago
1.1.3
2 years ago
1.0.4
2 years ago
1.2.1
2 years ago
1.0.3
2 years ago
0.4.0
2 years ago
0.3.1
2 years ago
0.3.0
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago
0.0.0
2 years ago