File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/components/ProgressBar Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,23 @@ import { ViewProps, setViewProps } from "../View/RNView";
8
8
import { RNWidget } from "../config" ;
9
9
import { throwUnsupported } from "../../utils/helpers" ;
10
10
11
+ /**
12
+ * The ProgressBar component provides ability to add and manipulate native progress bar widgets. It is based on
13
+ * [NodeGui's QProgressBar](https://docs.nodegui.org/docs/api/generated/classes/qprogressbar/).
14
+ * ## Example
15
+ * ```javascript
16
+ * import React from "react";
17
+ * import { Renderer, ProgressBar, Window } from "@nodegui/react-nodegui";
18
+ * const App = () => {
19
+ * return (
20
+ * <Window>
21
+ * <ProgressBar value={45} />
22
+ * </Window>
23
+ * );
24
+ * };
25
+ * Renderer.render(<App />);
26
+ * ```
27
+ */
11
28
export interface ProgressBarProps extends ViewProps < QProgressBarSignals > {
12
29
value ?: number ;
13
30
minimum ?: number ;
You can’t perform that action at this time.
0 commit comments