CoreUI for Vue.js logo
Angular JavaScript / Vanilla JS React.js
  • undefinedGetting started
  • undefinedCustomize
  • undefinedLayout
  • undefinedForms
  • undefinedComponents
  • undefinedTemplates
  • undefinedMigration
  • undefined
  • undefined
  • undefined
undefinedDownloadundefinedHire Us Get CoreUI PRO

Support CoreUI Development

CoreUI is an MIT-licensed open source project and is completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.

You can support our Open Source software development in the following ways:

  • Buy the CoreUI PRO, and get access to PRO components, and dedicated support.
  • Hire Us! We create stunning designs, high-conversion landing pages, functional mobile apps and reliable web services – everything you need to offer your products or services online and always stay a tap away from your customers.
  • Give us a star ⭐️ on Github.

Vue Range Component

Vue range component. Use our custom range inputs for consistent cross-browser styling and built-in customization.

Other frameworks

CoreUI components are available as native Angular, Bootstrap (Vanilla JS), and React components. To learn more please visit the following pages.

  • Angular Range
  • Bootstrap Range
  • React Range

Overview #

Create custom <input type="range"> controls with <CFormRange>. The track (the background) and thumb (the value) are both styled to appear the same across browsers. As only Edge Legacy and Firefox supports "filling" their track from the left or right of the thumb as a means to visually indicate progress, we do not currently support it.

<CFormRange id="customRange1" label="Example range" />
1

Disabled #

Add the disabled boolean attribute on an input to give it a grayed out appearance and remove pointer events.

<CFormRange id="disabledRange" disabled label="Disabled range" />
1

Min and max #

Range inputs have implicit values for min and max—0 and 100, respectively. You may specify new values for those using the min and max attributes.

<CFormRange label="Example range" :min="0" :max="5" value="3" id="customRange2"/>
1

Steps #

By default, range inputs "snap" to integer values. To change this, you can specify a step value. In the example below, we double the number of steps by using :step="0.5".

<CFormRange label="Example range" :min="0" :max="5" :step="0.5" value="3" id="customRange3"/> 
1

API #

CFormRange #

import { CFormRange } from '@coreui/vue'
// or
import CFormRange from '@coreui/vue/src/components/form/CFormRange'
1
2
3

Props #

Prop nameDescriptionTypeValuesDefault
disabledToggle the disabled state for the component.boolean--
label
4.3.0+
Add a caption for a component.string-
maxSpecifies the maximum value for the component.number--
minSpecifies the minimum value for the component.number--
model-valueThe default name for a value passed using v-model.string-
readonlyToggle the readonly state for the component.boolean-
stepsSpecifies the interval between legal numbers in the component.number--
valueThe value attribute of component.
@controllable onChange
number--

Events #

Event nameDescriptionProperties
changeEvent occurs when the value has been changed.
update:modelValueEmit the new value whenever there’s a change event.
On this page
  • Overview
  • Disabled
  • Min and max
  • Steps
  • API
    • CFormRange
  • GitHub
  • Twitter
  • CoreUI (Vanilla)
  • CoreUI for Angular
  • CoreUI for React.js

CoreUI for Vue is Open Source UI Components Library for Vue.js.

CoreUI code licensed MIT, docs CC BY 3.0. CoreUI PRO requires a commercial license.