UNPKG

synapse-react-client

Version:

[![Build Status](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client.svg?branch=main)](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synaps

15 lines (14 loc) 790 B
import * as React from 'react'; export declare type CopyToClipboardInputProps = { value: string; inputWidth: string; }; /** * Component that holds a large string in a readonly <input> to be copied to the user's clipboard when clicked. * This component should only be used when the value to copy is not very long AND the full length of the string * does not necessarily need to be seen by the user. This component was adapted from the email address copy to * clipboard functionality in UserCardMedium. For smaller/inline strings, look at UserCardMedium functionality * for displaying the value in a <p> tag instead of a readonly <input> tag. */ export declare const CopyToClipboardInput: React.FunctionComponent<CopyToClipboardInputProps>; export default CopyToClipboardInput;