npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

indreka-slider

v1.0.0

Published

The Slider component is used for selecting a range of values from a continuous range of values.

Downloads

7

Readme

Introduction

The Slider component is used for selecting a range of values from a continuous range of values.

Slider Colors

The table below provides the color specifications: | Color | Hex code | | --------- | ------- | | Primary-1 | #FFB42A | | Neutral-1 | #262626 | | Neutral-3 | #FFFFFF |

Slider States

The Slider component has several states, depending on the user's interaction with it | State | Description | | -------- | ---------------------------------------------------------------------- | | Default | The initial state of the slider component | | Hover | When the user hovers the mouse pointer over the slider component | | Pressed | When the user clicks on the slider component | | Disabled | When the Input Field is not available for interaction |

indreka-slider component

The <indreka-slider></indreka-slider> component having the following property:

  1. label having type of string.
  2. disabled having type of boolean.
  3. min having type of string.
  4. max having type of string.
  5. step having type of number.
  6. value having type of number.
  7. fromValue having type of number.
  8. toValue having type of number.
  9. variationMode having type of boolean.
  10. isDragging having type of boolean.

use

<indreka-slider></indreka-slider>

we can pass attributes inside like:

  1. label <indreka-slider label="labelName"></indreka-slider>

-- This will set the label for the slider component and also update the aria-label.

  1. disabled <indreka-slider disabled></indreka-slider>

-- This will disable the slider preventing the user to perform any action the slider component.

  1. min <indreka-slider min="value"></indreka-slider>

-- The min property is to set the min value for the slider component.

  1. max <indreka-slider max="value"></indreka-slider>

-- The max property is to set the max value for the slider component.

  1. step <indreka-slider step="value"></indreka-slider>

-- The step property is to set the step value for the slider component.

  1. fromValue <indreka-slider fromValue="value"></indreka-slider>

-- Set the fromValue property as default "30" to display the slider thumb in variation slider.

  1. toValue <indreka-slider toValue="value"></indreka-slider>

-- Set the toValue property as default "50" to display the slider thumb in variation slider.

  1. variationMode <indreka-slider variationMode="false"></indreka-slider>

-- Set the variationMode property as false to display the normal slider.

  1. variationMode <indreka-slider variationMode="true"></indreka-slider>

-- Set the variationMode property as true to display the variation slider.

styles The max-width and min-width of the input field is given as 200px and 600px respectively. For the custom component the styles cannot be changed.

To change the width of the slider . It can be wrapped between the div tag and it can be changed by giving width accordingly between 200px and 600px.