4.0.2 • Published 1 year ago

@eisberg-labs/mui-copy-field v4.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Downloads

Mui Copy Field

Material UI TextField with copy to clipboard functionality.

Example

If you 👍 or use this project, consider giving it a ★, thanks! 🙌

Installation

Since this is an extension of mui components, prerequisite is to have material library already installed.

npm i --save @mui/material @emotion/react @emotion/styled @mui/icons-material

As for the mui-copy-field:

npm i --save @eisberg-labs/mui-copy-field

Usage

import {DefaultCopyField} from '@eisberg-labs/mui-copy-field';

<DefaultCopyField
  label="Click on copy Button"
  value={"Enter text"} />

or:

import {CopyField} from '@eisberg-labs/mui-copy-field';

<CopyField
  label="Click on copy Button"
  value={"Enter text"}
  onCopySuccess={console.log}
  onCopyError={console.log}
  copyTooltip={"Some copy tooltip. Default is Copy"}
/>

Api

NameTypeDefaultDescription
copyTooltipstring"Copy"Copy button tooltip
onCopySuccessFunctionundefinedIf defined, fired on copy to clipboard
onCopyErrorFunctionundefinedIf defined, fired on copy to clipboard error

All TextField props are also supported.

License

MIT © Eisberg Labs

1.0.2

1 year ago

1.0.1

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

1.0.3

1 year ago

2.0.2

1 year ago

4.0.0

1 year ago

4.0.2

1 year ago

2.0.0

1 year ago

1.0.0

2 years ago

1.0.0-beta-5

2 years ago

1.0.0-beta-4

2 years ago

1.0.0-beta-3

2 years ago

1.0.0-beta-2

2 years ago

1.0.0-beta-1

2 years ago

1.0.0-beta

2 years ago

1.0.0-alpha-2

2 years ago