CoreUI Angular Logo
Framework:
  • JavaScript / Vanilla JS
  • React.js
  • Vue.js
Getting startedIntroductionSupport CoreUICustomizeSassOptionsCSS VariablesLayoutBreakpointsContainersGridColumnsGuttersFormsOverviewDate PickerPRODate Range PickerPROForm ControlSelectMulti SelectPROChecks & RadiosPassword InputPRORangeRange SliderPRORatingPROStepperPROInput GroupFloating LabelsLayoutTime PickerPROValidationComponentsAccordionAlertAvatarBadgeBreadcrumbButtonButton GroupCalendarPROCalloutCardCarouselClose buttonCollapseDropdownFooterHeaderImageList GroupLoading ButtonPROModalNavNavbarOffcanvasPaginationPlaceholderPopoverProgressSmart PaginationPROSmart TablePROSidebarSpinnerTableTabsNewToastTooltipWidgetsIconsChartsTemplatesNewAdmin & DasardDownloadInstallationCustomizeContentMigrationv4 → v5v3 → v4Angular version


DownloadHire UsGet CoreUI PRO
On this page

    Angular Range Component

    Use our custom Angular Range inputs for consistent cross-browser styling and built-in customization.

    Overview

    Create custom range controls with <input cFormControl type="range">. 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.

    Loading...
    Loading...

    Disabled

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

    Loading...
    Loading...

    Min and max

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

    Loading...
    Loading...

    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".

    Loading...
    Loading...

    API reference

    Form Module


    cFormControl

    type="range" directive

    Inputs
    namedescriptiontypedefault
    maxSpecifies the maximum value for the component.number100
    minSpecifies the minimum value for the component.number0
    stepsSpecifies the interval between legal numbers in the component.number1
    typeSpecifies the html type of input element.rangerequired
    valueThe value attribute of the input.number(max-min)/2
    disabledToggle the disabled state for the component.booleanfalse
    • Twitter
    • Support
    • CoreUI (Vanilla)
    • CoreUI for React.js
    • CoreUI for Vue.js

    CoreUI for Angular is Open Source UI Components Library for Angular.

    Currently v5.5.2 Code licensed MIT , docs CC BY 3.0 .
    CoreUI PRO requires a commercial license.