Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.31 KB

media-captions-button.md

File metadata and controls

32 lines (22 loc) · 1.31 KB

<media-captions-button/>

Button to show/disable captions

Attributes

Name Type Default Value Description
no-subtitles-fallback boolean false Controls whether media-chrome will show subtitle tracks if no closed captions tracks are available

Slots

Name Default Type Description
on svg An element that will be shown while closed captions are on
off svg An element that will be shown while closed captions are off

Example

<media-captions-button>
  <svg slot="on"><!-- your SVG --></svg>
  <svg slot="off"><!-- your SVG --></svg>
</media-captions-button>

Styling

See our styling docs