diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..e7397f1 --- /dev/null +++ b/Readme.md @@ -0,0 +1,69 @@ +# SigPro Editor + +A minimalist, ultra-lightweight WYSIWYG editor for SigPro. + +## Features + +* **Tiny footprint** - No heavy dependencies (only SigPro). +* **Reactive** - Built-in support for SigPro signals. +* **Media Support** - Drag & drop images and file attachments. +* **Code View** - Toggle between rich text and raw HTML. +* **DaisyUI Ready** - Styled with Tailwind CSS and DaisyUI classes. + +## Installation + +```bash +npm install sigpro-editor + +``` + +## Quick Start + +```javascript +import { $ } from "sigpro"; +import { Editor } from "sigpro-editor"; + +const content = $("
Hello World
"); + +const myApp = () => div([ + Editor({ + value: content, + onchange: (html) => content(html), + class: "my-4 shadow-lg" + }) +]); + +``` + +## API + +### Props + +| Prop | Type | Description | +| --- | --- | --- | +| `value` | `string | Signal