https://github.com/afeiship/react-rte-ui
UI toolkit for react rte.
https://github.com/afeiship/react-rte-ui
draftjs editor react rich rte slate text theme ui
Last synced: 11 days ago
JSON representation
UI toolkit for react rte.
- Host: GitHub
- URL: https://github.com/afeiship/react-rte-ui
- Owner: afeiship
- License: mit
- Created: 2021-02-02T01:10:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-02T01:31:56.000Z (over 5 years ago)
- Last Synced: 2025-08-18T16:09:21.035Z (9 months ago)
- Topics: draftjs, editor, react, rich, rte, slate, text, theme, ui
- Language: JavaScript
- Homepage:
- Size: 124 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# react-rte-ui
> UI toolkit for react rte.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```shell
npm install -S @jswork/react-rte-ui
```
## properties
__GENERATE_DOCS__
## usage
1. import css
```scss
@import "~@jswork/react-rte-ui/dist/style.css";
// or use sass
@import "~@jswork/react-rte-ui/dist/style.scss";
@import "~@jswork/wsui-rte-icons";
@import "~balloon-css";
// customize your styles:
$react-rte-ui-options: ()
```
2. import js
```js
import ReactDemokit from '@jswork/react-demokit';
import React from 'react';
import ReactDOM from 'react-dom';
import { Toolbar, Button, ButtonGroup } from '@jswork/react-rte-ui';
import './assets/style.scss';
class App extends React.Component {
render() {
return (
标
隔
空
f(x)
);
}
}
ReactDOM.render(, document.getElementById('app'));
```
## documentation
- https://afeiship.github.io/react-rte-ui/
## license
Code released under [the MIT license](https://github.com/afeiship/react-rte-ui/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/react-rte-ui
[version-url]: https://npmjs.org/package/@jswork/react-rte-ui
[license-image]: https://img.shields.io/npm/l/@jswork/react-rte-ui
[license-url]: https://github.com/afeiship/react-rte-ui/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-rte-ui
[size-url]: https://github.com/afeiship/react-rte-ui/blob/master/dist/react-rte-ui.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/react-rte-ui
[download-url]: https://www.npmjs.com/package/@jswork/react-rte-ui