• Stars
    star
    403
  • Rank 106,844 (Top 3 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Write interactive CLI apps with React

react-slate

Write interactive CLI apps with React


Build Status MIT License

All Contributors PRs Welcome Chat Code of Conduct

tweet

Package Description Version
@react-slate/core The core functionality and logic. Version

Website & documentation

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

Features

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

Usage

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

function App() {
  return (
    <View width="100%" flexDirection="row" justifyContent="center">
      <Text color="green" bold>Hello world!</Text>
    </View>
  );
}

render(<App />);