All Projects → charliewilco → react-gluejar

charliewilco / react-gluejar

Licence: MIT license
Paste images from your clipboard, declaratively

Programming Languages

typescript
32286 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to react-gluejar

MagicWE2
[MagicWE2] Lag free asynchronous world editor for PMMP with plenty of options
Stars: ✭ 109 (+87.93%)
Mutual labels:  copy, paste
Xcv
✂️ Cut, Copy and Paste files with Bash
Stars: ✭ 144 (+148.28%)
Mutual labels:  copy, paste
Clipboard Polyfill
📋 Simple copying on the web, with maximum browser compatibility.
Stars: ✭ 748 (+1189.66%)
Mutual labels:  copy, paste
gradle-cpd-plugin
Gradle plugin to find duplicate code using PMDs copy/paste detection (= CPD).
Stars: ✭ 88 (+51.72%)
Mutual labels:  copy, paste
Piknik
Copy/paste anything over the network.
Stars: ✭ 2,221 (+3729.31%)
Mutual labels:  copy, paste
Fs extra
Expanding opportunities standard library std::fs and std::io
Stars: ✭ 95 (+63.79%)
Mutual labels:  copy
Usbcopyer
😉 用于在插上U盘后自动按需复制该U盘的文件。”备份&偷U盘文件的神器”(写作USBCopyer,读作USBCopier)
Stars: ✭ 1,296 (+2134.48%)
Mutual labels:  copy
Copy Paths To Clipboard
Copy paths in a variety of formats to the clipboard with Alfred
Stars: ✭ 83 (+43.1%)
Mutual labels:  copy
Copycat Action
©️ GitHub Action for copying files to other repositories
Stars: ✭ 48 (-17.24%)
Mutual labels:  copy
cloner
A deep copy algorithm for haxe
Stars: ✭ 24 (-58.62%)
Mutual labels:  copy
Clone Deep
Recursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives. Used by superstruct, merge-deep, and many others!
Stars: ✭ 229 (+294.83%)
Mutual labels:  copy
Django Postgres Copy
Quickly import and export delimited data with Django support for PostgreSQL's COPY command
Stars: ✭ 139 (+139.66%)
Mutual labels:  copy
Redis Tools
my tools working with redis
Stars: ✭ 104 (+79.31%)
Mutual labels:  copy
Icopy
fclone telegram interface.Send commands to Telegram BOT for get a convience way to control fclone resources copy missions.
Stars: ✭ 188 (+224.14%)
Mutual labels:  copy
Copy Webpack Plugin
Copy files and directories with webpack
Stars: ✭ 2,679 (+4518.97%)
Mutual labels:  copy
Locopy
locopy: Loading/Unloading to Redshift and Snowflake using Python.
Stars: ✭ 73 (+25.86%)
Mutual labels:  copy
Copier
Copier for golang, copy value from struct to struct and more
Stars: ✭ 2,529 (+4260.34%)
Mutual labels:  copy
Pdf Lib
Create and modify PDF documents in any JavaScript environment
Stars: ✭ 3,426 (+5806.9%)
Mutual labels:  copy
Rollup Plugin Copy
Copy files and folders using Rollup
Stars: ✭ 128 (+120.69%)
Mutual labels:  copy
Assignment writer
So your teacher told you to upload written assignments? Hate writing assigments? This tool will help you convert your text to handwriting ;-; https://saiteja69.github.io/Assignment_Writer/
Stars: ✭ 143 (+146.55%)
Mutual labels:  copy

React Gluejar

Collects the images you paste from your clipboard.

Demo using react-gluejar

Installation

yarn add @charliewilco/gluejar

Example

import React, { Component } from 'react'
import { Gluejar } from '@charliewilco/gluejar'

class App extends Component {
  render() {
    return (
      <Gluejar onPaste={files => console.log(files)} onError={err => console.error(err)}>
        {({ images }) =>
          images.length > 0 &&
          images.map(image => <img src={image} key={image} alt={`Pasted: ${image}`} />)
        }
      </Gluejar>
    )
  }
}

Run this example locally by cloning the repo and running yarn example in the root directory. You can visit the example here.

Usage

Available Props

Prop Type Description Default
onPaste Function returns Array of image Blobs, responds to events () => null
onError Function returns error messages () => null
children Function returns Array of history of pasted images N/A
acceptedFiles Array<String> Array of accepted files to check for ['image/gif', 'image/png', 'image/jpeg', 'image/bmp']
container Element Element object to listen on window

Browser Support

Browser Support
Chrome 👍
IE 👎
Firefox 🙄
Edge 👍
Safari 👍
Opera 👍

🙄 = Look there's something going on in Firefox for a while. You can read the tracking issue here, but I don't insight into their timeline or priority.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].