# editable-placeholder-component

> ContentEditable placeholder for use with nickjackson/editable

Latest version **0.0.2** (published 2013-08-29) · 0 weekly downloads

## Install

```sh
npm install editable-placeholder-component
pnpm add editable-placeholder-component
yarn add editable-placeholder-component
bun add editable-placeholder-component
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2013-08-29 |
| First published | 2013-08-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | nickjackson |
| Keywords | contenteditable, editable, content, input, ui, placeholder |

## Links

- npm: https://www.npmjs.com/package/editable-placeholder-component
- npm.io page: https://npm.io/package/editable-placeholder-component

## Dependencies (1)

- [events-component-2](https://npm.io/package/events-component-2.md) *

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2013-08-29
- 0.0.1 — 2013-08-29

## README

# Editable-Placeholder

  ContentEditable placeholder for use with nickjackson/editable


## Introduction

This component is a plugin to use with `nickjackson/editable`.


## Installation

    $ component install nickjackson/editable

## Example

```js
var Editable = require('editable')
  , Placeholder = require('editable-placeholder')
  , el = document.querySelector('h1')
  , display = true
  , ph = Placeholder('placeholder text here', display);
 
Editable(el).use(ph);
```

## API

### Placeholder(text, display);

* `text` - string you wish to be displayed in the placeholder
* `display` - display `text` on initalize (boolean)

Returns a wrapper function with the main argument requring an instance of `Editable`.

## Todo
* Test on other browsers. Currently only tested on Chrome OSX.

## License

  MIT

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