Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
svelte-material-color-picker
Advanced tools
directly inspired from https://github.com/BennyAlex/material-design-inspired-color-picker
## Installationnpm i svelte-material-color-picker
<script>
import Picker from 'svelte-material-color-picker';
</script>
<Picker on:colorChanged {margin} {size} {colorsPerRow} {defaultTint} />
Full list of props/bindable variables for this component:
name | default | description |
---|---|---|
margin | 1 | Distance between color circles. |
size | 50 | Size of the colors circles. |
colorsPerRow | 6 | Number of color circles per row. |
defaultTint | 500 | Default tint displayed for each colors. |
selectedColor | #f44336 | The color selected, hex code with hashtag. |
mode | palette | The mode of the color picker. button mode will hide after the palette after selecting a color only showing the color circle of the selected color. palette mode with show the palette and highlight the selected color in it. |
palette | link palette | The palette used by the picker. |
Picker.svelte
dispatches the following event:
name | detail | description |
---|---|---|
colorChanged | { old:string, new:string } | Triggers when clicking on a color picker. |
<Kanban
on:colorChanged={(e) => alert(`Color changed from ${e.detail.old} to ${e.detail.new}`)}
/>
git clone https://github.com/V-Py/svelte-material-color-picker
cd svelte-material-color-picker
npm install
npm run dev
FAQs
 Svelte Color Picker
We found that svelte-material-color-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.