<media-volume-range>
The <media-volume-range> component is used to indicate the current volume level of the media and provide a control to change the volume level.
The component will be updated automatically based on the volume level and volume availability.
Default usage
Section titled Default usageStyling with attributes
Section titled Styling with attributesThe <media-volume-range> doesn’t expose any configuration attributes.
However, it will be updated with Media UI Attributes any time the volume changes or volume availability is updated.
You can use these attributes to style the button. For example, if volume is unavailable, perhaps on an iPhone, hide the volume range:
media-volume-range[mediavolumeunavailable] {
  display: none;
}Or, set the background color to red if the media is muted:
media-volume-range[mediamuted] {
  --media-control-background: red;
 }Reference
Section titled ReferenceAttributes
Section titled Attributes| Name | Type | Description | 
|---|---|---|
| disabled | boolean | The Boolean disabled attribute makes the element not mutable or focusable. | 
| aria-disabled | ||
| mediacontroller | string | The element `id` of the media controller to connect to (if not nested within). | 
Media UI Attributes
Section titled Media UI Attributes
The media UI attributes will be set automatically by the controller if they are
      connected via nesting or the mediacontroller attribute.
      Only set these attributes manually if you know what you're doing.
| Name | Type | Description | 
|---|---|---|
| mediavolume | string | Set to the media volume. | 
| mediamuted | boolean | Set to the media muted state. | 
| mediavolumeunavailable | string | Set if changing volume is unavailable. | 
CSS Parts
Section titled CSS Parts| Name | Description | 
|---|---|
| appearance | The appearance of the range containing the background, track and thumb. | 
CSS Variables
Section titled CSS Variables| Name | Default | Description | 
|---|---|---|
| --media-volume-range-display | inline-block | displayproperty of range. | 
| --media-primary-color | rgb(238 238 238) | Default color of range bar. | 
| --media-secondary-color | rgb(20 20 30 / .7) | Default color of range background. | 
| --media-control-display | inline-block | displayproperty of control. | 
| --media-control-padding | 10px | paddingof control. | 
| --media-control-background | var(--media-secondary-color, rgb(20 20 30 / .7)) | backgroundof control. | 
| --media-control-hover-background | rgb(50 50 70 / .7) | backgroundof control hover state. | 
| --media-control-height | 24px | heightof control. | 
| --media-range-padding | var(--media-control-padding, 10px) | paddingof range. | 
| --media-range-padding-left | var(--_media-range-padding) | padding-leftof range. | 
| --media-range-padding-right | var(--_media-range-padding) | padding-rightof range. | 
| --media-range-thumb-width | 10px | widthof range thumb. | 
| --media-range-thumb-height | 10px | heightof range thumb. | 
| --media-range-thumb-border | none | borderof range thumb. | 
| --media-range-thumb-border-radius | 10px | border-radiusof range thumb. | 
| --media-range-thumb-background | var(--media-primary-color, rgb(238 238 238)) | backgroundof range thumb. | 
| --media-range-thumb-box-shadow | 1px 1px 1px transparent | box-shadowof range thumb. | 
| --media-range-thumb-transition | transitionof range thumb. | |
| --media-range-thumb-transform | none | transformof range thumb. | 
| --media-range-thumb-opacity | 1 | opacityof range thumb. | 
| --media-range-bar-color | var(--media-primary-color, rgb(238 238 238)) | color_valueof range bar (elapsed progress). | 
| --media-range-track-color | transparent | color_valueof range track (remaining progress). | 
| --media-range-track-backdrop-filter | backdrop-filterof range track. | |
| --media-range-track-width | 100% | widthof range track. | 
| --media-range-track-height | 4px | heightof range track. | 
| --media-range-track-border | none | borderof range track. | 
| --media-range-track-outline | outlineof range track. | |
| --media-range-track-outline-offset | outline-offsetof range track. | |
| --media-range-track-border-radius | 1px | border-radiusof range track. | 
| --media-range-track-box-shadow | none | box-shadowof range track. | 
| --media-range-track-transition | transitionof range track. | |
| --media-range-track-translate-x | 0px | translatex-coordinate of range track. | 
| --media-range-track-translate-y | 0px | translatey-coordinate of range track. | 
| --media-range-track-background | rgb(255 255 255 / .2) | backgroundof range track background. | 
| --media-range-track-background-backdrop-filter | backdrop-filterof range track background. | |
| --media-time-range-hover-display | block | displayof range hover zone. | 
| --media-time-range-hover-bottom | -5px | bottomof range hover zone. | 
| --media-time-range-hover-height | max(100% + 5px, 20px) | heightof range hover zone. | 
| --media-range-track-pointer-background | backgroundof range track pointer. | |
| --media-range-track-pointer-border-right | border-rightof range track pointer. |