1.0.1 • Published 6 years ago
@react-slate/core v1.0.1
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
consolewhen exiting. - Disable colors with
NO_COLORenvironment 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
onLayoutprop. - Handle clicks using
onClickprop. - Detect mouse wheel events using
onWheelprop. - Use
for awaitto continuously render your app usingrenderToStringorrenderToJson. - 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/core1.0.1
6 years ago
1.0.0
6 years ago
1.0.0-alpha.3
6 years ago
1.0.0-alpha.2
6 years ago
1.0.0-alpha.1
6 years ago
1.0.0-alpha.0
6 years ago
0.8.0-alpha.0
7 years ago
0.7.0
7 years ago
0.6.0
7 years ago