stream-chat-react
Version:
React components to create chat conversations or livestream style chat
17 lines • 721 B
TypeScript
import React from 'react';
import type { ChangeEvent, ComponentProps } from 'react';
export type NumericInputProps = Omit<ComponentProps<'input'>, 'className' | 'type' | 'value' | 'onChange'> & {
value: string;
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
/** Optional label above the input */
label?: string;
/** Minimum value (stepper) */
min?: number;
/** Maximum value (stepper) */
max?: number;
/** Step for increment/decrement (default 1) */
step?: number;
className?: string;
};
export declare const NumericInput: React.ForwardRefExoticComponent<Omit<NumericInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
//# sourceMappingURL=NumericInput.d.ts.map