# ld-todo

> Last Draft todo plugin

Latest version **2.0.0** (published 2017-03-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install ld-todo
pnpm add ld-todo
yarn add ld-todo
bun add ld-todo
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-03-06 |
| First published | 2017-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steven Iseki |
| Maintainers | steveniseki |
| Keywords | ld, ld-todo, last draft, last-draft, last-draft-plugin, ld-plugin, ld plugin, draft-js, draft-js todo plugin, draft-js-plugins, draftjs plugins, draftjs |

## Links

- npm: https://www.npmjs.com/package/ld-todo
- Repository: https://github.com/vacenz/ld-todo
- Homepage: https://github.com/vacenz/ld-todo#readme
- Issues: https://github.com/vacenz/ld-todo/issues
- npm.io page: https://npm.io/package/ld-todo

## Dependencies (2)

- [draft-js](https://npm.io/package/draft-js.md) 0.10.0
- [styled-components](https://npm.io/package/styled-components.md) ^1.2.1

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2017-03-06
- 1.0.4 — 2017-03-06
- 1.0.3 — 2017-03-02
- 1.0.2 — 2017-03-02
- 1.0.1 — 2017-01-31
- 1.0.0 — 2017-01-24

## README

# ld-todo
todo plugin for [last-draft](http://lastdraft.vace.nz)

[![npm version](https://badge.fury.io/js/ld-todo.svg)](https://badge.fury.io/js/ld-todo)

# Install
```jsx
npm install ld-todo --save
```

# Use
```jsx
import {Editor} from 'last-draft'
import todo from 'ld-todo'
let plugins = [todo]

export default class ExampleEditor extends Component {
  constructor(props) {
    super(props)
    const INITIAL_STATE = editorStateFromHtml('<div></div>')
    this.state = { value: INITIAL_STATE }
  }

  onChange(editorState) {
    this.setState({ value: editorState })
  }

  render() {
    return (
      <Editor
        inline={['bold', 'italic', 'code', 'dropcap']}
        blocks={['h2', 'quote']}
        plugins={plugins}
        editorState={this.state.value}
        onChange={::this.onChange} />
    )
  }
}

```

## Styles

Last Draft plugins use styled-components 💅 for the base styling.

## Custom Styles with CSS

You can also add custom css to override the base styling with the following class names specified below:

```css
.ld-todo-wrapper {}
.ld-todo-input {}
.ld-todo {}
.ld-button-todo {}
```

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