1.0.7 • Published 4 years ago

react-yandex-share v1.0.7

Weekly downloads
172
License
ISC
Repository
github
Last release
4 years ago

Yandex.Share for React

Simple Yandex.Share component for React

Installation

npm install --save react-yandex-share or yarn add react-yandex-share

Usage

<YandexShare />

Warning: it appends additional script tag into document body, for load Yandex.Share library.

Props

content, contentByService, theme, hooks - read official Yandex.Share API documentation for details.

Example

import React from 'react';
import YandexShare from 'react-yandex-share';

class App extends React.Component {
  render() {
    return (
      <div>
        <YandexShare
          content={{ title: 'My page' }}
          theme={{ lang: 'en', services: 'vkontakte,facebook,twitter' }}
        />
      </div>
    );
  }
}
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago