2.0.10 • Published 5 years ago

the-copyboard v2.0.10

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

the-copyboard

Build Status npm Version JS Standard

Component for clip-to-copy

Installation

$ npm install the-copyboard --save

Usage

'use strict'

import React from 'react'
import { TheCopyboard, TheCopyboardStyle } from 'the-copyboard'

class ExampleComponent extends React.PureComponent {
  render () {
    return (
      <div>
        <TheCopyboardStyle/>
        <TheCopyboard text='http://example.com/foo/bar?t=1234qwerasdfzxcv'
                      tipText='Copied to your clip board'
        >
        </TheCopyboard>
      </div>

    )
  }
}

export default ExampleComponent

Components

TheCopyboard

Component for clip-to-copy

Props

NameTypeDescriptionDefault
textstringText to show
tipDurationnumberDuration to shows tip800
tipTextstringText for tip'Copied'
hrefnull

TheCopyboardStyle

Style for TheCopyboard

Props

NameTypeDescriptionDefault
optionsobjectStyle options{}

License

This software is released under the MIT License.

Links

2.0.10

5 years ago

2.0.9

5 years ago

2.0.7

5 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago