File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,29 @@ import { ViewProps, setViewProps } from "../View/RNView";
33import { RNWidget } from "../config" ;
44import { throwUnsupported } from "../../utils/helpers" ;
55
6+ /**
7+ * The SpinBox component provides the ability to add and manipulate native spin box widgets. It is based on
8+ * [NodeGui's QSpinBox](https://docs.nodegui.org/docs/api/generated/classes/qspinbox/).
9+ * ## Example
10+ * ```javascript
11+ * import React from "react";
12+ * import { Renderer, SpinBox, Window } from "@nodegui/react-nodegui";
13+ * const App = () => {
14+ * const handleValuehanged = {
15+ * valueChanged: (newValue) => {
16+ * console.log(newValue);
17+ * },
18+ * };
19+ * return (
20+ * <Window>
21+ * <SpinBox on={handleValuehanged} value={10} />
22+ * </Window>
23+ * );
24+ * };
25+ * Renderer.render(<App />);
26+ *
27+ * ```
28+ */
629export interface SpinBoxProps extends ViewProps < QSpinBoxSignals > {
730 prefix ?: string ;
831 suffix ?: string ;
You can’t perform that action at this time.
0 commit comments