Skip to content

A select toolbar for sharing text highlights similar to medium

Notifications You must be signed in to change notification settings

react-z/react-select-toolbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-select-toolbar

npm version

A select toolbar for sharing text highlights similar to medium

Installation

yarn add react-select-toolbar

Usage

import SelectToolbar from 'react-select-toolbar'
import ReactDOM from 'react-dom'
import React, { Component, PropTypes } from 'react'

const TestComponent = () => (
	<div>
    <div data-selectable>
      <p>Highlight the text to bring up the select toolbar.</p>
    </div>
    <SelectToolbar buttons={['facebook', 'twitter']} />
  </div>
)

ReactDOM.render( <TestComponent />, document.getElementById('root') )

Styles

react-select-toolbar uses uses styled-components 💅 for the base styling.

Development

yarn
yarn dev

Test

yarn test

Build

yarn
yarn build

Publish

npm login
npm version patch
git add -A
git push origin master
npm publish

License

MIT

About

A select toolbar for sharing text highlights similar to medium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published