Files
v10/dist/dev/ui/slider/slider-value.d.ts

17 lines
908 B
TypeScript

import { UIComponentProps } from "../../utils/types.js";
import { SliderState } from "@videojs/core";
//#region src/ui/slider/slider-value.d.ts
interface SliderValueProps extends UIComponentProps<'output', SliderState> {
/** Which slider value to display: the current position or the pointer position. */
type?: 'current' | 'pointer' | undefined;
/** Custom formatter for the displayed value. Overrides the root's `formatValue`. */
format?: ((value: number) => string) | undefined;
}
/** Displays a formatted text representation of the slider value. Renders an `<output>` element. */
declare const SliderValue: import("react").ForwardRefExoticComponent<Omit<SliderValueProps, "ref"> & import("react").RefAttributes<HTMLOutputElement>>;
declare namespace SliderValue {
type Props = SliderValueProps;
}
//#endregion
export { SliderValue, SliderValueProps };
//# sourceMappingURL=slider-value.d.ts.map