ankitm27 / react-slate

Render React apps to terminal

Home Page:http://react-slate.surge.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-slate

Build Status MIT License

All Contributors PRs Welcome Chat Code of Conduct

tweet

Package Version
@react-slate/core Version
@react-slate/components Version
@react-slate/utils Version

Prototype of Haul CLI

Prototype of Haul CLI. You can see the source here.

Features

  • Similar and intuitive CSS-like styling
  • Custom React Reconciler config, not React re-implementation
  • Small and lightweight

Limitations

  • Not as much UI elements as react-blessed are provided out of the box
  • No support for scroll events

Documentation

Documentation can be found here: http://react-slate.surge.sh/

Installation

yarn add react @react-slate/core

Usage

import React from 'react';
import { renderToTerminal, View } from '@react-slate/core';

class App extends React.Component {
  render() {
    return <View style={{ color: 'green' }}>Hello world!</View>;
  }
}

renderToTerminal(<App />, process.stdout);

Contributors


Paweł Trysła

💬 🐛 💻 🎨 📖 💡 🤔 ⚠️

Satyajit Sahoo

💻 🤔 👀

Jakub Beneš

💻 👀

Mikhail Nikolaevskiy

💻

David Baumgold

💻

About

Render React apps to terminal

http://react-slate.surge.sh/

License:MIT License


Languages

Language:JavaScript 98.5%Language:CSS 1.5%