@dcorp/web-editor
v2.0.1
Published
### Installation
Downloads
272
Readme
Getting Started
Installation
yarn add @dcorp/web-editor
Usage
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./node_modules/@dcorp/web-editor/dist/**/*.js',
],
presets: [require('@dcorp/ui-preset')],
darkMode: ['class', '[data-mode="dark"]'],
}
import '@dcorp/web-editor/dist/index.css'
import {Editor, EditorProvider} from "@dcorp/web-editor"
return <EditorProvider>
<Editor/>
</EditorProvider>