react-remarkbox

0.3.0 • Public • Published

react-remarkbox

A React component for Remarkbox.

Installation

Using npm:

$ npm install --save react-remarkbox

Using yarn:

$ yarn add react-remarkbox

Usage

import { render } from 'react-dom';
import React from 'react';
import Remarkbox from 'react-remarkbox';
 
const App = () => (
  <div>
    <h1>My App</h1>
 
    <Remarkbox
      remarkboxKey={'your-remarkbox-key-goes-here'}
      threadTitle={'This is a title'}
      threadUri={'http://your-domain.test/some-page'}
    />
  </div>
);
 
render(<App />, document.getElementById('root'));

Props

The Remarkbox component has the following required props:

className (string)

Sets the iframe's class.

remarkboxKey (required string)

The Remarkbox key. Get this from your Remarkbox profile.

style (object)

A style object to pass to the iframe.

threadFragment (string)

A comment ID. This is optional and you should get it from location.hash.

threadUri (required string)

The URL of the thread's page.

Contributing

Please feel free to submit any issues or pull requests.

License

MIT

Package Sidebar

Install

npm i react-remarkbox

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

10.1 kB

Total Files

4

Last publish

Collaborators

  • bsonntag