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";
88import { RNWidget } from "../config" ;
99import { throwUnsupported } from "../../utils/helpers" ;
1010
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+ */
1128export interface ProgressBarProps extends ViewProps < QProgressBarSignals > {
1229 value ?: number ;
1330 minimum ?: number ;
You can’t perform that action at this time.
0 commit comments