@businessandemotions/lemonade-core
v1.1.2
Published
In the project directory, you can run:
Downloads
47
Readme
Available Scripts
In the project directory, you can run:
npm start
Runs the app in the development mode. Open http://localhost:8080 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
Docs
Hooks
import { useLemonade } from "@businessandemotions/lemonade-core/Editor";
const Lemonade = useLemonade();
| Property | Description | | ----------- | ------------------------------------------------------------------- | | content | Contains the useContent value, which tracks and modifies the state. | | selected | Currently selected componentent (Meaning showing sidebar settings). | | setSelected | Function to set or unset selected component. | | hover | Currently hovering over componentent (Meaning showing controlls). | | setHover | Function to set or unset hover component. | | dragging | Current componentent being dragged. | | setDragging | Function to set or unset currently dragging component. |