# react-quill-ver2

> React Quill editor for Quill 2.0

Latest version **2.0.10** (published 2025-03-08) · 0 weekly downloads

## Install

```sh
npm install react-quill-ver2
pnpm add react-quill-ver2
yarn add react-quill-ver2
bun add react-quill-ver2
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.10 |
| Published | 2025-03-08 |
| First published | 2025-03-06 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 36.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | fedora08 |
| Keywords | react, quill, quill2, rich text editor, text editor, html editor, react-quill, react-component, typescript, editor, rich text, html editor, syntax highlighting, quill 2.0, quill 2.0 editor, quill 2.0 editor react, react-quill2, react-quill-2, react-quill-ver2 |

## Links

- npm: https://www.npmjs.com/package/react-quill-ver2
- Repository: https://github.com/jcsofts/react-quill2
- Homepage: https://github.com/jcsofts/react-quill2#readme
- Issues: https://github.com/jcsofts/react-quill2/issues
- npm.io page: https://npm.io/package/react-quill-ver2

## Dependencies (4)

- [quill](https://npm.io/package/quill.md) ^2.0.0
- [highlight.js](https://npm.io/package/highlight.js.md) ^11.9.0
- [@emoji-mart/data](https://npm.io/package/@emoji-mart/data.md) ^1.1.1
- [@emoji-mart/react](https://npm.io/package/@emoji-mart/react.md) ^1.1.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.10 (latest) — 2025-03-08
- 2.0.9 — 2025-03-08
- 2.0.8 — 2025-03-07
- 2.0.7 — 2025-03-07
- 2.0.6 — 2025-03-06
- 2.0.5 — 2025-03-06
- 2.0.4 — 2025-03-06
- 2.0.3 — 2025-03-06
- 2.0.2 — 2025-03-06
- 2.0.1 — 2025-03-06
- 2.0.0 — 2025-03-06

## README

# React Quill v2

A React component for Quill 2.0 rich text editor.

## Installation

```bash
npm install react-quill-ver2
# or
yarn add react-quill-ver2
# or
pnpm add react-quill-ver2
```

## Dependencies

This package requires the following peer dependencies:

```json
{
  "peerDependencies": {
    "react": "^18.0.0",
    "react-dom": "^18.0.0",
    "quill": "^2.0.0"
  }
}
```

## Usage

```tsx
import ReactQuill from 'react-quill-ver2';
import 'quill/dist/quill.snow.css';
import 'quill/dist/quill.bubble.css';
import 'highlight.js/styles/github.css';

function App() {
  const [value, setValue] = useState('');

  return (
    <ReactQuill
      value={value}
      onChange={setValue}
      theme="snow"
      modules={{
        toolbar: [
          [{ 'header': [1, 2, 3, 4, 5, 6, false] }],
          ['bold', 'italic', 'underline', 'strike'],
          [{ 'list': 'ordered'}, { 'list': 'bullet' }],
          ['link', 'image', 'video'],
          ['clean']
        ]
      }}
    />
  );
}
```

## Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| value | string | - | The value of the editor |
| defaultValue | string | - | The default value of the editor |
| onChange | (content: string) => void | - | Callback when the editor content changes |
| options | QuillOptions | - | Quill editor options |
| readOnly | boolean | false | Whether the editor is read-only |
| placeholder | string | - | Placeholder text |
| theme | string | 'snow' | Editor theme ('snow' or 'bubble') |
| modules | QuillOptions['modules'] | - | Quill modules configuration |
| formats | string[] | - | Allowed formats |
| style | React.CSSProperties | - | Custom styles |
| className | string | - | Custom CSS class |

## Features

- Full Quill 2.0 support
- TypeScript support
- Syntax highlighting with highlight.js
- Emoji picker support
- Customizable toolbar
- Snow and Bubble themes
- Read-only mode
- Placeholder text
- Custom styling

## Development

```bash
# Install dependencies
npm install

# Start development server
npm run dev

# Build the library
npm run build

# Preview the build
npm run preview
```

## License

MIT

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