🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@astro-github-elements/clipboard-copy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astro-github-elements/clipboard-copy

An Astro wrapper for the '@github/clipboard-copy' web component, an easy to use copy to clipboard button

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

@astro-github-elements/clipboard-copy

This is a astro wrapper for the @github/clipboard-copy-element component, it does a few things:

  • Makes importing component easier
  • Adds typing to props

How to Use

npm i @astro-github-elements/clipboard-copy

---
import { ClipboardCopy } from '@astro-github-elements/clipboard-copy';
---

<ClipboardCopy value="copy me">Click me</ClipboardCopy>

Output:

<clipboard-copy value="copy me">Click me</clipboard-copy>

Documentation

You can find the API for this component here: @github/clipboard-copy-element

Keywords

astro

FAQs

Package last updated on 04 Nov 2022

Did you know?

Socket

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