![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@bulatdashiev/svelte-slider
Advanced tools
Simple svelte range slider component. demo
Install with npm or yarn:
npm i -D @bulatdashiev/svelte-slider
Then import Slider
component to your Svelte app.
import Slider from '@bulatdashiev/svelte-slider';
<Slider bind:value >
<Slider bind:value range />
<Slider min="-50" max="50" step="10" bind:value range />
You can bind
to min, max and value, slider will change according to props change
Default slot
<Slider bind:value>
<span style="font-size: 20px;">👏</span>
</Slider>
Left, right slots
<Slider bind:value range>
<span slot="left" style="font-size: 20px;">👎</span>
<span slot="right" style="font-size: 20px;">👍</span>
</Slider>
Name | Type | Default | Description |
---|---|---|---|
value | Array [number, number] | [min, max] | |
min | number | 0 | |
max | number | 100 | |
step | number | 1 | |
name | Array [string, string] | empty array | Provide names to inputs if you want use slider in form input |
range | boolean | false | Set to true to use range input |
order | boolean | false | Set to true if you want value[0] always be greater then value[1] |
default
- customizes both thumbs if left
or right
slots isn't providedleft
- provide to customize left thumbright
- provide to customize right thumbinput
- event fires when the value changes within thumb drag:root {
--track-bg: #ebebeb;
--progress-bg: #8abdff;
--thumb-bg: #5784fd;
}
set --thumb-bg
to transparent
if you use custom thumb
:root {
--thumb-bg: transparent;
}
MIT © BulatDashiev
FAQs
Simple range slider for Svelte 3
The npm package @bulatdashiev/svelte-slider receives a total of 0 weekly downloads. As such, @bulatdashiev/svelte-slider popularity was classified as not popular.
We found that @bulatdashiev/svelte-slider 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.