Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@reportingdev/react-console-ui

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reportingdev/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

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
2
Weekly downloads
 
Created
Source

React Console UI

Your_Image_Here

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

npm install react-console-ui

How to Use

First, import ConsoleUI into your React component.

import ConsoleUI from 'react-console-ui';

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

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.

FAQs

Package last updated on 21 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc