# react-decorative-editor

> React component styled as a text editor that displays text

Latest version **1.0.0** (published 2019-03-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-decorative-editor
pnpm add react-decorative-editor
yarn add react-decorative-editor
bun add react-decorative-editor
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-03-02 |
| First published | 2019-03-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 1 |
| Unpacked size | 40.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Carter McAlister |
| Maintainers | carter-mcalister |

## Links

- npm: https://www.npmjs.com/package/react-decorative-editor
- Repository: https://github.com/CarterMcAlister/react-decorative-editor
- Homepage: https://github.com/CarterMcAlister/react-decorative-editor#readme
- Issues: https://github.com/CarterMcAlister/react-decorative-editor/issues
- npm.io page: https://npm.io/package/react-decorative-editor

## Dependencies (1)

- [node-sass](https://npm.io/package/node-sass.md) ^4.11.0

## Recent versions

- 1.0.0 (latest) — 2019-03-02

## README

# React Decorative Editor Component

> A React text component that prints text in a code editor style window. Requires a version of React that supports Hooks.

[![NPM](https://img.shields.io/npm/v/react-decorative-editor.svg)](https://www.npmjs.com/package/react-decorative-editor) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm i react-decorative-editor
```



## Usage

```jsx
import React, { Component } from 'react'

import DecorativeEditor from 'react-decorative-editor'

class Example extends Component {
  render () {
    return (
      <DecorativeEditor 
        text={text} 
        darkMode={false}
        speed={85}
        cursor={true} 
        style={{maxWidth: '540px'}}
        />
    )
  }
}
```

## Properties

Property | Type | Required | Default value | Description
:--- | :--- | :--- | :--- | :---
`text`|string|yes|| Text to be displayed in the component. It is recommended to define text in a tilde for formatting.
`darkMode`|boolean|no|false| Uses dark theme if true, light theme otherwise.
`speed`|number|no|100| Delay between each character being typed. 
`cursor`|boolean|no|false| Shows cursor as text is typed if true
`style`|object|no|{maxWidth: '540px'}| Style object that is applied to the component's outermost div.
-----

## License

MIT © [Carter McAlister](https://github.com/CarterMcAlister)

---
_Source: https://npm.io/package/react-decorative-editor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
