# @markdijkstra/react-placeholder

> React component which allows you to create dummy placeholders.

Latest version **1.0.1** (published 2020-01-21) · (MIT OR Apache-2.0) license · 0 weekly downloads

## Install

```sh
npm install @markdijkstra/react-placeholder
pnpm add @markdijkstra/react-placeholder
yarn add @markdijkstra/react-placeholder
bun add @markdijkstra/react-placeholder
```

## 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 | 1.0.1 |
| Published | 2020-01-21 |
| First published | 2020-01-21 |
| Weekly downloads | 0 |
| License | (MIT OR Apache-2.0) |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mark Dijkstra |
| Maintainers | markdijkstra |
| Keywords | npm, placeholder, component, react |

## Links

- npm: https://www.npmjs.com/package/@markdijkstra/react-placeholder
- Repository: https://github.com/MarkDijkstra/react-placeholder
- Homepage: https://github.com/MarkDijkstra/react-placeholder#readme
- Issues: https://github.com/MarkDijkstra/react-placeholder/issues
- npm.io page: https://npm.io/package/@markdijkstra/react-placeholder

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^16.12.0

## 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

- 1.0.1 (latest) — 2020-01-21

## README

# react-placeholder

![npm](https://img.shields.io/npm/v/@markdijkstra/react-placeholder)
![NPM](https://img.shields.io/npm/l/@markdijkstra/react-placeholder)
![GitHub issues](https://img.shields.io/github/issues/MarkDijkstra/react-placeholder)
![CircleCI](https://img.shields.io/circleci/build/github/MarkDijkstra/react-placeholder)

React component which allows you to create dummy placeholders.

### How install


```npm
npm i @markdijkstra/react-placeholder
```

### How to use


```jsx
import {Placeholder} from '@markdijkstra/react-placeholder'


const PlaceholderData = [
    {
        height          : '150px',
        width           : '300px',
        backgroundColor : '#eee',
        borderColor     : '#ccc',
        textColor       : '#aaa',
        fontSize        : '13px',
        caption         : 'placeholder caption'
    }
];

<Placeholder options={PlaceholderData} className="my-placeholder"/>

```

### Options

| option          | default        |
| --------------- | -------------- |
| height          | 150px          |
| width           | 300px          |
| backgroundColor | #eee           |
| borderColor     | #ccc           |
| textColor       | #aaa           |
| fontSize        | 13px           |
| caption         | height x width |



The value caption can be removed by setting it to 'false'.

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