Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@leafygreen-ui/copyable
Advanced tools
yarn add @leafygreen-ui/copyable
npm install @leafygreen-ui/copyable
<Copyable label="Label" description="Description">
{'npm install @leafygreen-ui/copyable'}
</Copyable>
Output HTML
<label class="leafygreen-ui-1x9zy2h" for="copyable-7">Label</label>
<p class="leafygreen-ui-1jtodpe">Description</p>
<div class="leafygreen-ui-1r7yzs7">
<code class="leafygreen-ui-b24pl6" id="copyable-7"
>npm install @leafygreen-ui/copyable</code
><span class="leafygreen-ui-10wc33h"
><button
type="button"
class="leafygreen-ui-crgt"
aria-disabled="false"
aria-describedby="tooltip-7"
>
<span class="leafygreen-ui-tdo6z2"
><svg
class="leafygreen-ui-1akpp5z"
height="20"
width="20"
viewBox="0 0 16 16"
role="img"
aria-labelledby="Copy-7"
>
<title id="Copy-7">Copy Icon</title>
<desc>Created with Sketch.</desc>
<g
id="Copy-Copy"
stroke="none"
stroke-width="1"
fill="none"
fill-rule="evenodd"
>
<path
d="M13,5 L10,5 L10,2 L7,2 L7,11 L13,11 L13,5 Z M15,5 L15,13 L5,13 L5,0 L10,0 L15,5 Z"
fill="currentColor"
></path>
<path
d="M4,4 L4,5 L2,5 L2,15 L9,15 L9,14 L10,14 L10,16 L1,16 L1,4 L4,4 Z"
fill="currentColor"
></path>
</g></svg
>Copy</span
>
</button></span
>
</div>
Prop | Type | Description | Default |
---|---|---|---|
label | string | Label text for the copyable contents. | |
description | string | Further text to describe the contents. | undefined |
className | string | className applied to the container of the code element | |
children | string | The text that will be copied. | |
darkMode | boolean | Determines whether or not the component appears in dark mode. | false |
size | 'default' , 'large' | The display size of the label, description, and copyable children | 'default' |
copyable | boolean | Whether or not a copy button should be shown. | true |
shouldTooltipUsePortal | boolean | Whether or not the "Copied!" tooltip should use a React portal | true |
FAQs
leafyGreen UI Kit Copyable
The npm package @leafygreen-ui/copyable receives a total of 934 weekly downloads. As such, @leafygreen-ui/copyable popularity was classified as not popular.
We found that @leafygreen-ui/copyable demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.