File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,27 @@ import { ViewProps, setViewProps } from "../View/RNView";
8
8
import { RNWidget } from "../config" ;
9
9
import { throwUnsupported } from "../../utils/helpers" ;
10
10
11
+ /**
12
+ * The LineEdit component provides ability to add and manipulate native editable text field widgets. It is based on
13
+ * [NodeGui's QLineEdit](https://docs.nodegui.org/docs/api/generated/classes/qlineedit).
14
+ * ## Example
15
+ * ```javascript
16
+ * import React from "react";
17
+ * import { Renderer, LineEdit, Window } from "@nodegui/react-nodegui";
18
+ * const App = () => {
19
+ * const handleTextChanged = textValue => {
20
+ * console.log(textValue);
21
+ * };
22
+ * return (
23
+ * <Window>
24
+ * <LineEdit on={{ textChanged: handleTextChanged }} />
25
+ * </Window>
26
+ * );
27
+ * };
28
+ * Renderer.render(<App />);
29
+ *
30
+ * ```
31
+ */
11
32
export interface LineEditProps extends ViewProps < QLineEditSignals > {
12
33
text ?: string ;
13
34
placeholderText ?: string ;
You can’t perform that action at this time.
0 commit comments