Socket
Socket
Sign inDemoInstall

@dominate-color-js/solid

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @dominate-color-js/solid

Adaptation of dominant-color-js for the solid-js framework


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
39.5 kB
Created
Weekly downloads
 

Readme

Source

Installation

npm install @dominate-color-js/solid
yarn add @dominate-color-js/solid
pnpm add @dominate-color-js/solid

Basic Example

import { useColorDetection } from "@dominate-color-js/solid";


const App = () => {

    const {colors , loading} = useColorDetection()

    return <div>{loading ? "loading..." : colors.map((color) => { 
        return <span>{color}</span>   
    })}</div>
}

a more detailed version

FAQs

Last updated on 18 Jun 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc