New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@react-slate/core

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-slate/core

Write interactive CLI apps with React

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
50
decreased by-10.71%
Maintainers
1
Weekly downloads
 
Created
Source

react-slate

Write interactive CLI apps with React


Website & documentation

https://zamotany.github.io/react-slate/

Features

  • Render React apps to terminal (render), string (renderToString) or as a JSON tree (renderToJson).
  • Build layouts with FlexBox (https://github.com/vislyhq/stretch).
  • Render your app to alternative screen buffer and go back to the previous content upon exit.
  • Log messages to main screen buffer with console when exiting.
  • Disable colors with NO_COLOR environment variable.
  • Use standard ANSI colors, RBG, Hex and CSS keywords to style your app.
  • Use built-in <Progress /> and <Spinner /> components.
  • Get layout information using onLayout prop.
  • Handle clicks using onClick prop.
  • Detect mouse wheel events using onWheel prop.
  • Use for await to continuously render your app using renderToString or renderToJson.
  • Support for absolute positioning and depth (zIndex).
  • Built with TypeScript.

Please check out Roadmap for in-progress and planned features.

Limitations

  • Web components are not compatible.
  • Strings must be wrapped in a <Text> component.

Installation

yarn add react @react-slate/core

Keywords

FAQs

Package last updated on 14 Nov 2019

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