February 7, 2020

327 words 2 mins read

premieroctet/openchakra

premieroctet/openchakra

Full-featured visual editor and code generator for React using Chakra UI

repo name premieroctet/openchakra
repo link https://github.com/premieroctet/openchakra
homepage https://openchakra.app
language TypeScript
size (curr.) 2509 kB
stars (curr.) 1293
created 2020-01-17
license MIT License

OpenChakra is a visual editor for the best component library in town: Chakra UI 🤗. Quickly draft components with the simple drag and drop UI.

👉 https://openchakra.app

Features

  • 🎨 Drag and drop Chakra UI components
  • 💅 Preset components
  • 👀 Live props editing and styling
  • ⚛️ Production-ready code
  • 🎈 CodeSandbox export
  • 🔮 Undo/redo edit
  • 💽 Localstorage sync

Screenshot

Getting started

Builder mode

The Builder mode adds extra padding/border to ease components selection (like containers).

💡Toggle the Builder mode with the b shortcut

Code panel

Toggle the code panel for viewing the JSX/React code of your components. You can even export your code directly to CodeSandbox!

💡Toggle the Code panel with the c shortcut

Components panel

Drag any component from the left hand panel into this editor. Then start interacting with them. You can drag a preset: it’s a group of components (like Alert). Just drop a preset to easily setup a complex component!

Inspector

Update props & style

On the right hand-side, you can find the inspector panel. You will find the tools to edit the component’s props and style.

Delete, reset and documentation

Reach the yellow bar on the top to delete, reset and access the Chakra documentation of each component.

Sort components

By clicking on a component containing children, you will see a Children panel appearing on the right. It enables sorting the children.

Editor Shortcuts

Shortcut Description
cmd+Z ctrl+Z Undo last action
cmd+Y ctrl+y Redo action
cmd+D ctrl+d Duplicate component
del Delete selected component
c Toggle Code panel
b Toggle Builder mode
p Select parent component
Esc Unselect component

Roadmap

  • More Chakra UI components integration
  • Components copy
  • Props panel improvements
  • Code generation improvements
  • Dark mode support
  • Custom presets
  • Custom theme
  • Handle PseudoBox state (hover, active…)
  • Fix bugs 🧨
  • Support other UI (Material, Reakit…)
comments powered by Disqus