UNPKG

@tolokoban/ui

Version:

React components with theme

26 lines 817 B
import * as React from "react"; import { CommonProps } from "../../theme"; export type ViewInputNumberProps = CommonProps & { value: number; onChange(value: number): void; id?: string; /** Text to display when the input is empty. */ placeholder?: string; /** If defined, label will be added to the input. */ label?: React.ReactNode; /** If `true`, the focus will be set here once displayed. */ autofocus?: boolean; enabled?: boolean; /** * Form name. */ name?: string; min?: number; max?: number; /** * Event dispatched when the user pressed Enter. */ onEnterKeyPressed?(this: void, value: string): void; }; export declare function ViewInputNumber(props: ViewInputNumberProps): JSX.Element; //# sourceMappingURL=InputNumber.d.ts.map