Skip to content

Commit

Permalink
docs: add thumb slot example
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes committed Nov 6, 2024
1 parent ae8e3b1 commit d89c2cb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/src/pages/docs/en/components/media-time-range.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,25 @@ Set the `preview` slot to an empty element to remove the default preview element
</media-controller>`}
/>

## Thumb slot

<SandpackContainer
editorHeight={330}
html={`<media-controller>
<video
playsinline muted crossorigin
slot="media"
src="https://stream.mux.com/A3VXy02VoUinw01pwyomEO3bHnG4P32xzV7u1j1FSzjNg/low.mp4"
></video>
<media-control-bar>
<media-time-range>
<svg slot="thumb" style="width: 20px; height: 20px; background: none;">
<circle fill="#df2c2c" cx="10" cy="10" r="10"/>
</svg>
</media-time-range>
</media-control-bar>
</media-controller>`}
/>


## Styling
Expand Down

0 comments on commit d89c2cb

Please sign in to comment.