@binder/editor
v1.0.15
Published
[![npm version](https://badge.fury.io/js/%40binder%2Feditor.svg)](https://www.npmjs.com/package/@binder/editor)
Downloads
31
Readme
📓 binder-editor
📦 Installation
npm i @binder/editor
yarn add @binder/editor
🔨 Usage
import { BinderEditor, TopErrorBoundary } from "@binder/editor";
import { ThemeProvider, theme } from "@binder/ui";
const App = () => {
return (
<ThemeProvider theme={theme}>
<TopErrorBoundary>
<BinderEditor
title={"Angiosperms"}
actions={{
backButton: {
label: "Back",
buttonProps: {
onClick: () => alert("🚀🚀🚀🚀🚀🚀🚀"),
},
},
}}
toolbarProps={{
textColor: {
menuTitle: "Text color",
},
textBoxColor: {
menuTitle: "Text box color",
},
textBoxStyle: {
menuTitle: "Text box style",
},
}}
/>
</TopErrorBoundary>
</ThemeProvider>
);
};
⬆️ Development directions
- Clone this repo:
git clone https://github.com/marcelovicentegc/binder-editor.git
- cd into it:
cd binder-editor
- Install its dependencies (use
npm
):npm i
- Run the application:
npm start
🤝 Contributing
- Create your own branch from
develop
- Make the changes you wish
- Write or rewrite the unit tests, if necessary
- Open a pull request pointing to
develop
- That's it! 🤓