<media-control-bar>
The <media-control-bar>
container component is used to make layout and styling of your controls as a “control bar” easier.
Default usage
Section titled Default usageBy default, <media-control-bar>
will try to scale down other Media Chrome components if there is not enough room and will grow to the width of the <media-controller>
.
Use with <media-time-range>
Section titled Use with <media-time-range><media-control-bar>
will expand the <media-time-range>
if there is extra space available.
Use as separate control bar
Section titled Use as separate control bar<media-control-bar>
can be used as a control bar outside of the <media-controller>
by using the mediacontroller
attribute.
Reference
Section titled ReferenceAttributes
Section titled AttributesName | Type | Description |
---|---|---|
mediacontroller | string | The element `id` of the media controller to connect to (if not nested within). |
CSS Variables
Section titled CSS VariablesName | Default | Description |
---|---|---|
--media-primary-color | rgb(238 238 238) | Default color of text and icon. |
--media-secondary-color | Default color of button background. | |
--media-text-color | var(--media-primary-color, rgb(238 238 238)) | color of button text. |
--media-control-bar-display | inline-flex | display property of control bar. |
--media-control-display | var(--media-control-bar-display, inline-flex) | display property of control. |