# react-console-ui

> The react-console-ui package offers a simple console UI component for displaying logs in React applications. Designed to improve developer experience, this package provides various types of logs like info, warning, error, and success, along with features

Latest version **0.0.1** (published 2023-09-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-console-ui
pnpm add react-console-ui
yarn add react-console-ui
bun add react-console-ui
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-09-27 |
| First published | 2023-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 49 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Braden Ericson |
| Maintainers | braden |
| Keywords | react, console, logging, developer-tools, debug, log-viewer, error-handling, warnings, info-logs, ui, components, user-interface, tailwindcss, frontend, react-component, devtools, diagnostics, real-time, monitoring, terminal |

## Links

- npm: https://www.npmjs.com/package/react-console-ui
- Repository: https://github.com/reporting-dev/react-console-ui
- Homepage: https://github.com/reporting-dev/react-console-ui#readme
- Issues: https://github.com/reporting-dev/react-console-ui/issues
- npm.io page: https://npm.io/package/react-console-ui

## Dependencies (2)

- [typescript](https://npm.io/package/typescript.md) ^5.2.2
- [@heroicons/react](https://npm.io/package/@heroicons/react.md) ^2.0.18

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2023-09-27

## README

# React Console UI

![Your_Image_Here](https://uploads-ssl.webflow.com/63c6e835dc1c7763baa585f4/650bd176933cd3d346643790_react-console-ui.png)

## Description

`react-console-ui` is a simple console UI component for displaying logs in React applications. It handles various types of logs such as info, warning, error, and success, and offers features like expandable rows for duplicate logs.

## Installation

```bash
npm install react-console-ui
```

## How to Use

First, import ConsoleUI into your React component.

```javascript
import ConsoleUI from 'react-console-ui';
```

Then, use it in your component by passing an array of log objects to the logs prop.

```javascript
const logs = [
  { type: 'info', message: 'Info message', details: 'More details' },
  { type: 'warning', message: 'Warning message', details: 'Some warning details' },
  { type: 'error', message: 'Error occurred', details: 'Error details here' },
  { type: 'success', message: 'Success!', details: 'Action was successful' },
];

<ConsoleUI logs={logs} />
```

## Log Object
Each log object should contain:
* type: The type of log ("info", "warning", "error", "success").
* message: The main log message.
* details: Additional details for the log.

---
_Source: https://npm.io/package/react-console-ui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
