mirror of
https://github.com/zoriya/v10.git
synced 2026-08-10 08:08:10 +00:00
22 lines
767 B
TypeScript
22 lines
767 B
TypeScript
import { UIComponentProps } from "../../utils/types.js";
|
||
import { TimeCore } from "@videojs/core";
|
||
//#region src/ui/time/time-value.d.ts
|
||
interface ValueProps extends Omit<UIComponentProps<'time', TimeCore.State>, 'children'>, TimeCore.Props {}
|
||
/**
|
||
* Displays a formatted time value (current, duration, or remaining).
|
||
*
|
||
* @example
|
||
* ```tsx
|
||
* <Time.Value />
|
||
* <Time.Value type="duration" />
|
||
* <Time.Value type="remaining" negativeSign="−" />
|
||
* ```
|
||
*/
|
||
declare const Value: import("react").ForwardRefExoticComponent<Omit<ValueProps, "ref"> & import("react").RefAttributes<HTMLTimeElement>>;
|
||
declare namespace Value {
|
||
type Props = ValueProps;
|
||
type State = TimeCore.State;
|
||
}
|
||
//#endregion
|
||
export { Value, ValueProps };
|
||
//# sourceMappingURL=time-value.d.ts.map
|