codelift
A "No Code" GUI for your existing React app.
Getting Started
Within your project:
-
yarn add codelift --dev
-
For create-react-app:
yarn codelift start
For Next.js:
yarn codelift dev
(
codelift
runsyarn ____
with whatever you provide) -
Add the following
import "codelift/register"
to the top of yoursrc/index.tsx
orpages/_app.tsx
:;;;;codelift
requires access to your application's copy ofreact
andreact-dom
to support custom inspectors.
Examples
Features
-
Double-Click componetns & elements in the tree view to open in VS Code.
-
Tailwind Visual Inspector
- Hover & Select an element.
- Find-as-you-type CSS classes.
- Hover to preview before applying.
- Click to toggle in your source code.
-
CMD+' to toggle codelift and browse normally.
-
Custom Inspectors:
Suppose you have
Header
component that accepts atitle
:const Header = {...}Next, attach a custom
Inspector
component to yourHeader
that accepts the currentprops
and callssetProps
when it changes:Header {return<inputonChange=defaultValue=propstitle/>;};Your
Inspector
will be rendered in a sidepanel when aHeader
is selected:
Contributing
- Clone this repo.
yarn cra
oryarn next
to run the CRA or Next.js examples, respectively.
Author
- Eric Clemmons
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Eric Clemmons 💻 📖 🚇 |
Faizaan 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!