Extra 25% off for all sale items + Free CoreUI Icons PRO with every order! Limited offer for the first 100 people, use code 2024BWCW25 during checkout.
Use our custom Angular Range inputs for consistent cross-browser styling and built-in customization.
Loading...
## 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...
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...
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
| name | description | type | default |
| ---- | ----------- | ---- | ------- |
| `max` | Specifies the maximum value for the component. | `number` | _100_ |
| `min` | Specifies the minimum value for the component. | `number` | _0_ |
| `steps` | Specifies the interval between legal numbers in the component. | `number` |_1_|
| `type` | Specifies the html type of input element. | `range` |__required__|
| `value` | The value attribute of the input. | `number` | _(max-min)/2_ |
| `disabled` | Toggle the disabled state for the component. | `boolean` | _false_ |