Socket
Socket
Sign inDemoInstall

@eisberg-labs/mui-copy-field

Package Overview
Dependencies
86
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @eisberg-labs/mui-copy-field

Material-UI text field with copy to clipboard functionality.


Version published
Weekly downloads
276
increased by12.65%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

4.0.2 (2023-01-25)

Bug Fixes

  • next-image-section: fix not applied css (e14e13d)

Readme

Source

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

Keywords

FAQs

Last updated on 25 Jan 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc