import { QSpinBox, QWidget, QSpinBoxSignals } from "@nodegui/nodegui"; import { ViewProps } from "../View/RNView"; import { RNWidget } from "../config"; /** * The SpinBox component provides the ability to add and manipulate native spin box widgets. It is based on * [NodeGui's QSpinBox](https://docs.nodegui.org/docs/api/generated/classes/qspinbox/). * ## Example * ```javascript * import React from "react"; * import { Renderer, SpinBox, Window } from "@nodegui/react-nodegui"; * const App = () => { * const handleValuehanged = { * valueChanged: (newValue) => { * console.log(newValue); * }, * }; * return ( * * * * ); * }; * Renderer.render(); * * ``` */ export interface SpinBoxProps extends ViewProps { prefix?: string; suffix?: string; singleStep?: number; range?: Range; value?: number; } /** * @ignore */ export declare class RNSpinBox extends QSpinBox implements RNWidget { setProps(newProps: SpinBoxProps, oldProps: SpinBoxProps): void; appendInitialChild(child: QWidget): void; appendChild(child: QWidget): void; insertBefore(child: QWidget, beforeChild: QWidget): void; removeChild(child: QWidget): void; static tagName: string; } declare type Range = { minimum: number; maximum: number; }; export {};