Socket
Socket
Sign inDemoInstall

@coffeekraken/s-theme-switcher-component

Package Overview
Dependencies
5
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coffeekraken/s-theme-switcher-component

Simple web component that let you switch theme(s) and variant(s) when using the Coffeekraken toolchain like the @coffeekraken/s-postcss-sugar-plugin, etc...


Version published
Weekly downloads
169
decreased by-52.12%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

{{#> layout-readme }}

SClipboardCopyComponent

This package expose a simple SClipboardCopyComponent custom element that you can define and use in your pages easily.

Features

  • Framework agnostic. Simply webcomponent.
  • Set a "from" target that will be copied in the clipboard on click
  • Default icons for "copy", "copied", and "error"
  • Responsive props see more
  • And more...

Usage

First, simply import and define the component in your js/ts file:

import { define } from '@coffeekraken/s-clipboard-copy-component';
define();

Make use of it in your pages:

<input type="text" value="Hello world" id="my-input" />
<s-clipboard-copy from="my-input"></s-clipboard-copy>

Attributes

{{> interface namespace='@coffeekraken.s-clipboard-copy-component.js.interface.SClipboardCopyComponentInterface' }}

API

For more information about the API, please check out the API documentation

{{/ layout-readme }}

FAQs

Last updated on 18 Aug 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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc