0.3.0 • Published 4 years ago

react-remarkbox v0.3.0

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

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

0.3.0

4 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago