UNPKG

material-duration-picker

Version:

React Material component for durations inspired by Material-UI Pickers

12 lines (11 loc) 538 B
import { TextFieldProps } from "@material-ui/core"; import { ComponentType } from "react"; import { DurationType, DurationView, Labels } from "./types"; export declare type DurationFieldProps = TextFieldProps & { duration: DurationType; onConfirm: (value: number | undefined) => void; view: DurationView; labels?: Labels; TextFieldComp?: ComponentType<TextFieldProps>; }; export declare const DurationField: ({ duration, onConfirm, TextFieldComp, view, labels: _labels, ...props }: DurationFieldProps) => JSX.Element;