1.2.16 • Published 3 months ago
react-terminal-history v1.2.16
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.8
3 months ago
1.2.7
3 months ago
1.2.6
3 months ago
1.2.9
3 months ago
1.2.12
3 months ago
1.2.10
3 months ago
1.2.11
3 months ago
1.2.16
3 months ago
1.2.14
3 months ago
1.2.15
3 months ago
1.2.5
5 months ago
1.2.0
10 months ago
1.1.1
10 months ago
1.0.2
10 months ago
1.1.0
10 months ago
1.0.1
10 months ago
1.2.4
10 months ago
1.0.6
10 months ago
1.2.3
10 months ago
1.1.4
10 months ago
1.0.5
10 months ago
1.2.2
10 months ago
1.1.3
10 months ago
1.0.4
10 months ago
1.2.1
10 months ago
1.0.3
10 months ago
0.4.0
12 months ago
0.3.1
12 months ago
0.3.0
12 months ago
0.2.1
12 months ago
0.2.0
12 months ago
0.1.4
12 months ago
0.1.3
12 months ago
0.1.2
12 months ago
0.1.1
12 months ago
0.1.0
12 months ago
0.0.7
12 months ago
0.0.6
12 months ago
0.0.5
12 months ago
0.0.4
12 months ago
0.0.3
12 months ago
0.0.2
12 months ago
0.0.1
12 months ago
0.0.0
12 months ago