zamotany/react-slate
zamotany/react-slate has 404 GitHub stars and 13 forks. Star changes are not measured yet. Last checked 2026-11-11 02:27 UTC. Last push 2023-01-13.
So werden diese Zahlen gemessen
Write interactive CLI apps with React
What you can do
- terminal with render
- terminal in fullscreen mode with renderFullscreen
- a string with renderToString
- a JSON tree renderToJson
Gemessener Sternzuwachs
- in 24h
- Aktualisierung verzögert
- in 7 days
- Verlauf wird gesammelt
- in 15 days
- Verlauf wird gesammelt
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
Original
Write interactive CLI apps with React
| Package | Description | Version |
|---|---|---|
@react-slate/core |
The core functionality and logic. |
Website & documentation
https://zamotany.github.io/react-slate/
Features
- Render React apps to:
- terminal with
render - terminal in fullscreen mode with
renderFullscreen - a string with
renderToString - a JSON tree
renderToJson
- terminal with
- Use
for awaitto continuously render your app usingrenderToStringorrenderToJson. - Render your app to alternative screen buffer and go back to the previous content upon exit with
renderFullscreen. - Log messages to main screen buffer with
consolewhen exiting when in fullscreen mode (renderFullscreen). - Build layouts with FlexBox (https://github.com/vislyhq/stretch).
- 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. - 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
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 />);
Ähnliche Projekte entdecken
codecrafters-io/build-your-own-x
Meistere das Programmieren, indem du deine Lieblingstechnologien von Grund auf neu erschaffst.
561,629 Sternepublic-apis/public-apis
Eine gemeinschaftliche Liste kostenloser APIs
497,988 Sternemorluto/rea
Mit Agenten alles per Reverse Engineering untersuchen, vom Verhalten der Anwendung bis hin zu nativen Binärdateien.
450,318 Sterneopenclaw/openclaw
Die KI, die wirklich Dinge erledigt. Jedes Betriebssystem, jede Plattform. Auf die Hummer-Art. 🦞
394,304 Sterne