<Range>
Component
<Range>
is an interactive control in order to accept numeric value within a specified range.
Here the demo:
<Range>
Component<Range>
is an interactive control in order to accept numeric value within a specified range.
Here the demo:
<Range>
ComponentThere are 2 ways to install <Range>
component into your react app project:
The alternative appearances of the <Range>
layout without changing the <Range>
's functionality.
orientation
PropertySets the orientation of the <Range>
.
The possible values are:
undefined
'inline'
'block'
Here the preview:
size
PropertyDefines the alternative size of the <Range>
.
The possible values are:
undefined
'sm'
'md'
'lg'
Here the preview:
theme
PropertyDefines the contextual theme of the <Range>
.
The possible values are:
undefined
'primary'
'secondary'
'success'
'info'
'warning'
'danger'
'light'
'dark'
Here the preview:
gradient
PropertyActivates a 3D mode of the <Range>
.
The possible values are:
undefined
'inherit'
true
false
Here the preview:
outlined
PropertyActivates an outlined mode (background-less, contrast foreground, and contrast border) of the <Range>
.
The possible values are:
undefined
'inherit'
true
false
Here the preview:
mild
PropertyActivates a mild mode (mild background, contrast foreground, and contrast border) of the <Range>
.
The possible values are:
undefined
'inherit'
true
false
Here the preview:
nude
PropertyActivates an nude mode (background-less, padding-less, and border-less) of the <Range>
.
The possible values are:
undefined
true
false
Here the preview:
The conditions of the <Range>
behavior or functionality.
enabled
PropertyDefines the enabled/disabled state of the <Range>
.
The possible values are:
undefined
true
false
Here the preview:
inheritEnabled
PropertyInfluences the <Range>
's disabled state by <ancestor enabled={false}>
.
The possible values are:
undefined
true
false
Here the preview:
readOnly
PropertyDefines the readOnly/mutable state of the <Range>
.
The possible values are:
undefined
true
false
inheritReadOnly
PropertyInfluences the <Range>
's readOnly
by <ancestor readOnly={true}>
.
The possible values are:
undefined
true
false
enableValidation
PropertyActivates the valid/invalid indicator of the <Range>
.
The possible values are:
undefined
true
false
isValid
PropertyMarks the validity status of the <Range>
.
The possible values are:
undefined
null
true
false
Here the preview:
inheritValidation
PropertyInfluences the <Range>
's valid/invalid indicator by <ancestor isValid={true|false} enableValidation={true}>
.
The possible values are:
undefined
true
false
Overwrites the internal (sub) components used as the composition of <Range>
component.
trackComponent
PropertyOverwrites the internal <EditableControl>
component used as the main track of <Range>
component.
trackLowerComponent
PropertyOverwrites the internal <Generic>
component used as the lower track of <Range>
component.
trackUpperComponent
PropertyOverwrites the internal <Generic>
component used as the upper track of <Range>
component.
thumbComponent
PropertyOverwrites the internal <EditableActionControl>
component used as the thumb of <Range>
component.
trackRef
PropertyGets the DOM reference of the internal <EditableControl>
component used as the main track of <Range>
component.
<Range trackRef={fooTrackRef} />
is equivalent to:<Range trackComponent={
<EditableControl elmRef={fooTrackRef} />
} />
trackLowerRef
PropertyGets the DOM reference of the internal <Generic>
component used as the lower track of <Range>
component.
<Range trackLowerRef={fooTrackLowerRef} />
is equivalent to:<Range trackLowerComponent={
<Generic elmRef={fooTrackLowerRef} />
} />
trackUpperRef
PropertyGets the DOM reference of the internal <Generic>
component used as the upper track of <Range>
component.
<Range trackUpperRef={fooTrackUpperRef} />
is equivalent to:<Range trackUpperComponent={
<Generic elmRef={fooTrackUpperRef} />
} />
thumbRef
PropertyGets the DOM reference of the internal <EditableActionControl>
component used as the thumb of <Range>
component.
<Range thumbRef={fooThumbRef} />
is equivalent to:<Range thumbComponent={
<EditableActionControl elmRef={fooThumbRef} />
} />
trackClasses
PropertyAppends the CSS class of the internal <EditableControl>
component used as the main track of <Range>
component.
<Range trackClasses={['boo', 'foo']} />
is equivalent to:<Range trackComponent={
<EditableControl classes={['boo', 'foo']} />
} />
trackLowerClasses
PropertyAppends the CSS class of the internal <Generic>
component used as the lower track of <Range>
component.
<Range trackLowerClasses={['boo', 'foo']} />
is equivalent to:<Range trackLowerComponent={
<Generic classes={['boo', 'foo']} />
} />
trackUpperClasses
PropertyAppends the CSS class of the internal <Generic>
component used as the upper track of <Range>
component.
<Range trackUpperClasses={['boo', 'foo']} />
is equivalent to:<Range trackUpperComponent={
<Generic classes={['boo', 'foo']} />
} />
thumbClasses
PropertyAppends the CSS class of the internal <EditableActionControl>
component used as the thumb of <Range>
component.
<Range thumbClasses={['boo', 'foo']} />
is equivalent to:<Range thumbComponent={
<EditableActionControl classes={['boo', 'foo']} />
} />
trackStyle
PropertyAppends the inline CSS of the internal <EditableControl>
component used as the main track of <Range>
component.
<Range trackStyle={{ opacity: 0.5, cursor: 'pointer' }} />
is equivalent to:<Range trackComponent={
<EditableControl style={{ opacity: 0.5, cursor: 'pointer' }} />
} />
trackLowerStyle
PropertyAppends the inline CSS of the internal <Generic>
component used as the lower track of <Range>
component.
<Range trackLowerStyle={{ opacity: 0.5, cursor: 'pointer' }} />
is equivalent to:<Range trackLowerComponent={
<Generic style={{ opacity: 0.5, cursor: 'pointer' }} />
} />
trackUpperStyle
PropertyAppends the inline CSS of the internal <Generic>
component used as the upper track of <Range>
component.
<Range trackUpperStyle={{ opacity: 0.5, cursor: 'pointer' }} />
is equivalent to:<Range trackUpperComponent={
<Generic style={{ opacity: 0.5, cursor: 'pointer' }} />
} />
thumbStyle
PropertyAppends the inline CSS of the internal <EditableActionControl>
component used as the thumb of <Range>
component.
<Range thumbStyle={{ opacity: 0.5, cursor: 'pointer' }} />
is equivalent to:<Range thumbComponent={
<EditableActionControl style={{ opacity: 0.5, cursor: 'pointer' }} />
} />
Because <Range>
is made from <EditableActionControl>
, so all properties from <EditableActionControl>
are inherited.
You can see the documentation of <EditableActionControl> here.
There are several variables of <Range>
you can customize. Changing the variables affects all <Range>
instance and other components that depend on <Range>
.
Here the exposed variables:
The example of accessing, modifying, & adding variables: