Giter VIP home page Giter VIP logo

react-share-buttons's Introduction

react-share-buttons

一键分享到各大社交网站的react组件

支持微信二维码扫描

react-share-buttons

DEMO

git clone https://github.com/DawnyWu/react-share-buttons.git
npm install
npm start

在浏览器中打开 http://localhost:3001 即可查看例子

使用

<ShareButtons 
  sites = {["qzone", "weibo", "qq", "tencent", "wechat", "douban" ]}
  url = "https://github.com/DawnyWu/react-share-buttons"
  title = "react-share-buttons"
  description = "一键分享到各大社交网站的react组件"
/>

props 有如下这些,无特殊要求无需输入,使用默认即可:smile:

sites               : ["qzone", "weibo", "google", "twitter", "qq", 
                       "tencent", "wechat", "douban", "linkedin", "facebook"], // 启用的站点
url                 : '', // 网址,默认使用 window.location.href
source              : '', // 来源(QQ空间会用到), 默认读取head标签:<meta name="site" content="https://github.com/DawnyWu/react-share-buttons" />
title               : '', // 标题,默认读取 document.title 或者 <meta name="title" content="react-share-buttons" />
description         : '', // 描述, 默认读取head标签:<meta name="description" content="一键分享到各大社交网站的react组件" />
image               : '', // 图片, 默认取网页中第一个img标签
wechatQrcodeTitle   : '微信扫一扫:分享', // 微信二维码提示文字
wechatQrcodeHelper  : '微信里点“发现”,扫一下二维码便可将本文分享至朋友圈'

Inspired by

share.js

react-recaptcha

License

MIT

react-share-buttons's People

Contributors

dawnywu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.