Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aesth-vue-range-input

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aesth-vue-range-input

a completely customizable and aesthetic range input component for vue.

  • 0.1.0
  • next
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

aesth-vue-range-input



Screenshot of aesth-vue-range-input



a completely customizable and aesthetic range input component for vue.

Table of Contents

  1. Features
  2. Installation
  3. Usage
  4. Range Input Components
  5. Props
  6. License

Features

  • supports all native range input attributes because it is built on the native HTML range input.
  • completely customizable.
  • minimal design.
  • implements buffered feature (appropriate for media players).

Installation

For vue 3, include the @next tag like this - ...aesth-vue-range-input@next

npm

npm install aesth-vue-range-input

yarn

yarn add aesth-vue-range-input

CDN

jsDelivr
<script src="https://cdn.jsdelivr.net/npm/aesth-vue-range-input"></script>
UNPKG
<script src="https://unpkg.com/aesth-vue-range-input"></script>

Usage

If installed through npm or yarn,

<template>
  <div id="app">
    <aesth-vue-range-input v-model.number="rangeValue" />
  </div>
</template>

<script>
import AesthVueRangeInput from "aesth-vue-range-input";

export default {
  data() {
    return {
      rangeValue: 20,
    };
  },
  components {
    AesthVueRangeInput,
  },
};
</script>

Include the version number of vue in the value of the script's src attribute.

If installed through CDN, in your HTML file,

<head>
  <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
  <!-- OR -->
  <script src="https://unpkg.com/vue@2"></script>
    
    
  <script src="https://cdn.jsdelivr.net/npm/aesth-vue-range-input"></script>
  <!-- OR -->
  <script src="https://unpkg.com/aesth-vue-range-input"></script>
</head>

<body>
  <div id="app">
    <aesth-vue-range-input v-model.number="rangeValue" />
  </div>
  
  <script>
    var app = new Vue({
      el: '#app',
      data: {
        rangeValue: 20,
      }
    });
  </script>
</body>

Demo

A Demo of the aesth-vue-range-input installed through jsDelivr is available here.

Range Input Components

  • progress: The section to the left of the thumb. This section consists of values lower than the current value as indicated by the thumb.
  • thumb: The knob that the user can utilize to alter the range input's value.
  • track: The section that the thumb slides on.

Props

All the props are optional.

PropDescriptionTypeDefault
maxthe greatest value in the range of permitted valuesNumber100
valuethe value of the range input (make sure to include the .number modifier on the v-model directive)Number0
rangeWidththe width of the range inputString100%
progressColorthe color of the range input's progress section (the v-model directive has to be present for this to be visible on webkit browsers)String#000c
trackColorthe color of the range input's trackString#0003
squaredThumbboolean specifying whether the range input's thumb should be in a square or circle shapeBooleanfalse
thumbBorderColorthe color of the thumb's borderString#000
thumbSizethe width and height CSS properties of the range input's thumbString20px
bufferedan object containing the width and color of the buffered sectionObjectundefined

Here's an implementation with the buffered prop:

<aesth-vue-range-input
  :buffered="{
    width: '70%',
    color: '#0008',
  }"
/>

License

MIT © Idorenyin Udoh

Keywords

FAQs

Package last updated on 05 Oct 2021

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc