Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/final-form/rff-cli-example
An example of how to use 🏁 React Final Form in a CLI application with Ink
https://github.com/final-form/rff-cli-example
cli command-line command-line-tool final-form forms ink javascript node pastel react-final-form
Last synced: about 1 month ago
JSON representation
An example of how to use 🏁 React Final Form in a CLI application with Ink
- Host: GitHub
- URL: https://github.com/final-form/rff-cli-example
- Owner: final-form
- Created: 2019-05-03T10:45:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-03T10:47:11.000Z (over 5 years ago)
- Last Synced: 2024-04-14T04:18:33.373Z (7 months ago)
- Topics: cli, command-line, command-line-tool, final-form, forms, ink, javascript, node, pastel, react-final-form
- Language: JavaScript
- Size: 4.05 MB
- Stars: 76
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rff-cli-example
This package is an example of how [🏁 React Final Form](https://github.com/final-form/react-final-form#-react-final-form) can be used to maintain form data in a CLI app using [Ink](https://github.com/vadimdemedes/ink) and [Pastel](https://github.com/vadimdemedes/pastel), by [@vadimdemedes](https://github.com/vadimdemedes).
The app simulates a project scaffolding CLI app, like what happens when you run `npm init`.
## Features
- Text inputs
- Select inputs
- Multi-Select inputs
- Sync validation – Some of the fields are required, and others must conform to a certain structure.
- Async validation – it will check to see if the package name you have selected is available on NPM.The main purpose is to demonstrate a proof of concept, but you are welcome to copy and reuse the `TextInput`, `SelectInput`, and `MultiSelect` input components as you wish.
## Run it
```bash
$ npx rff-cli-example
```