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";
88import { RNWidget } from "../config" ;
99import { throwUnsupported } from "../../utils/helpers" ;
1010
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+ */
1132export interface LineEditProps extends ViewProps < QLineEditSignals > {
1233 text ?: string ;
1334 placeholderText ?: string ;
You can’t perform that action at this time.
0 commit comments