react-unicode-editor
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

react-unicode-editor

React Unicode Editor is a react editor component that includes unicode formatting and variables blocks.

The primary use case for this component is for marketing apps that target social media, push and text message communications.

This component works on all modern browsers, but does not support Internet Explorer!

Check out the demo!

Usage

const App = () => {
  const [disabled, setDisabled] = useState(false);
  const [mounted, setMounted] = useState(true);
  const [unicodeState, setUnicodeState] = useState([]);
  const unicodeEditorRef = useRef(null);

  return (
    <ReactUnicodeEditor
      startValue={unicodeState}
      onChange={(state) => { setUnicodeState(state) }}
      ref={unicodeEditorRef}
      textareaStyle={{ minHeight: 100, backgroundColor: 'blue' }}
      disabled={disabled}
      throttle
      throttleInterval={300}
    />
  )
}

Please see the example for full usage.

If you find any issues please raise on the issues page on github.

Readme

Keywords

none

Package Sidebar

Install

npm i react-unicode-editor

Weekly Downloads

11

Version

0.2.0

License

none

Unpacked Size

80.4 kB

Total Files

24

Last publish

Collaborators

  • jazzbrown1