Hex Core JS
    Preparing search index...

    Type Alias TimeInputProps

    TimeInputProps: {
        autoFocus?: boolean;
        disabled?: boolean;
        format?: (value: NumberFieldValue) => string;
        id?: string;
        invalid?: boolean;
        name?: string;
        onBlur?: () => void;
        onFocus?: () => void;
        placeholder?: string;
        precision?: TimePrecision;
        setValue: SetStateFunction<NumberFieldValue>;
        sideEffect?: (v: NumberFieldValue) => void;
        truncate?: boolean;
        value: NumberFieldValue;
    } & Pick<InputProps, "before" | "after" | "gap"> & Partial<
        ClassNameProps & StyleProps,
    >

    Type Declaration

    • OptionalautoFocus?: boolean

      Indicates if the input should be auto-focused.

    • Optionaldisabled?: boolean

      Indicates if the input is disabled.

    • Optionalformat?: (value: NumberFieldValue) => string

      A function to format the value into a standardized format. Only updates the value in the input on mount and blur.

    • Optionalid?: string

      The ID of the input.

    • Optionalinvalid?: boolean

      Indicates if the input is invalid.

    • Optionalname?: string

      The name of the input.

    • OptionalonBlur?: () => void

      A callback function to call when focus is removed from the input.

    • OptionalonFocus?: () => void

      A callback function to call when the input becomes focused.

    • Optionalplaceholder?: string

      Placeholder text to display when the value is blank.

    • Optionalprecision?: TimePrecision

      The precision of the input.

    • setValue: SetStateFunction<NumberFieldValue>

      A callback function to update the input value when a change happens.

    • OptionalsideEffect?: (v: NumberFieldValue) => void

      A side effect function to call when the value changes as a result of user interaction with this input, and not external updates to the field value.

    • Optionaltruncate?: boolean

      Indicates if input values should be truncated to the given precision.

    • value: NumberFieldValue

      The value of the input.