https://github.com/marks/retool-component-diff-viewer
https://github.com/marks/retool-component-diff-viewer
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marks/retool-component-diff-viewer
- Owner: marks
- License: mit
- Created: 2025-02-04T15:23:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-04T15:53:31.000Z (over 1 year ago)
- Last Synced: 2025-05-05T14:51:33.989Z (about 1 year ago)
- Language: TypeScript
- Size: 602 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Retool Custom Component for [`react-diff-viewer-continued`](https://www.npmjs.com/package/react-diff-viewer-continued)
This repo is based off of [tryretool/custom-component-collection-template](https://github.com/tryretool/custom-component-collection-template) and has been modified to contain a minimal example for creating a Retool Custom Component from an existing React component -- in this case, [`react-diff-viewer-continued`](https://www.npmjs.com/package/react-diff-viewer-continued)
To learn more about how custom component libraries work, visit [Retool's official documentation on Custom Component Libraries](https://docs.retool.com/apps/guides/custom/custom-component-libraries).
### Screenshot
The screenshot below shows an example app that visualizes the diff of two Javascript objects in both splitView=true and splitView=false modes.
[](screenshot.png)
### Quick Start
Use these commands to install this Custom Component library into your Retool instance. For more complete instructions, visit [Retool's official documentation on Custom Component Libraries](https://docs.retool.com/apps/guides/custom/custom-component-libraries).
1. Clone this repo and enter the directory
2. Run `npm install`
3. Run `npx retool-ccl login` to login to your Retool instance. You will be guided to create an API key that allows read/write access to Custom Component Libraries.
4. Run `npx retool-ccl init` to initialize a new Custom Component Library in your Retool instance
5. Run `npx retool-ccl dev` to test this Custom Component in dev mode
6. Run `npx retool-ccl deploy` to deploy this Custom Component to your Retool instance