synapse-react-client
Version:
[](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [](https://badge.fury.io/js/synaps
15 lines (14 loc) • 790 B
TypeScript
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;