UNPKG

@aidenlx/player

Version:

Headless web components that make integrating media on the a web a breeze.

45 lines (40 loc) 1.46 kB
// [@vidstack/eliza] THIS FILE IS AUTO GENERATED - SEE `eliza.config.ts` import "../../define/vds-volume-slider.js"; import * as React from "react"; import { createComponent } from "../lib/index.js"; import { VolumeSliderElement } from "../../ui/volume-slider/index.js"; const EVENTS = { /** Fired when the user begins interacting with the slider and dragging the thumb. The event detail contains the current value the drag is starting at. */ onSliderDragStart: "vds-slider-drag-start", /** Fired when the user stops dragging the slider thumb. The event detail contains the value the drag is ending at. */ onSliderDragEnd: "vds-slider-drag-end", /** Fired when the slider value changes. The event detail contains the current value. */ onSliderValueChange: "vds-slider-value-change", /** Fired when the slider drag value changes. The drag value indicates the last slider value that the user has dragged to. The event detail contains the value. */ onSliderDragValueChange: "vds-slider-drag-value-change", /** Fired when the device pointer is inside the slider region and it's position changes. The event detail contains the value. */ onSliderPointerValueChange: "vds-slider-pointer-value-change", } as const; /** A slider control that lets the user specify their desired volume level. */ const VolumeSlider = createComponent( React, "vds-volume-slider", VolumeSliderElement, EVENTS, "VolumeSlider" ); export default VolumeSlider;