# @jonasknutsen/wp-react-components

> React components for WordPress API

Latest version **0.1.0** (published 2018-08-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install @jonasknutsen/wp-react-components
pnpm add @jonasknutsen/wp-react-components
yarn add @jonasknutsen/wp-react-components
bun add @jonasknutsen/wp-react-components
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-08-28 |
| First published | 2018-08-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jonas Knutsen |
| Maintainers | jonasknutsen |
| Keywords | React, WordPress |

## Links

- npm: https://www.npmjs.com/package/@jonasknutsen/wp-react-components
- Repository: https://github.com/jonasknutsen/wp-react-components
- Homepage: https://github.com/jonasknutsen/wp-react-components#readme
- Issues: https://github.com/jonasknutsen/wp-react-components/issues
- npm.io page: https://npm.io/package/@jonasknutsen/wp-react-components

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

- 0.1.0 (latest) — 2018-08-28
- 0.0.1 — 2018-08-25

## README

# wp-react-coponents

Simple helper components in React, that takes values WordPress posts.

## Install and use
    npm install @jonasknutsen/wp-react-components

    import React from 'react'
    import {PostDate} from '@jonasknutsen/wp-react-components'

    export default class Example extends React.Component {
      const {post} = this.props
      render () {
        return (
          <div>
            <PostDate post={post} />
          </div>
        )
      }
    }

## Components
### PostDate
Props | Value | Default | Required | Comment
----- | ----- | ------- | -------- | -------
post | object | | true | The WordPress post
publishedText | string | 'Published' | false | Text before published date
modifiedText | string | 'Modified' | false | Text before modified date
className | string | | false | Class name for outer div

### PostDateInline
Props | Value | Default | Required | Comment
----- | ----- | ------- | -------- | -------
post | object | | true | The WordPress post
publishedText | string | 'Published' | false | Text before published date
modifiedText | string | 'Modified' | false | Text before modified date
className | string | | false | Class name for outer span
showDiff | bool | false | false | Show modified date, if applicable

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