@seeqdev/qomponents 0.0.166 → 0.0.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +32 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +32 -3
- package/dist/index.js.map +1 -1
- package/dist/src/TextArea/TextArea.types.d.ts +11 -0
- package/package.json +1 -1
|
@@ -48,6 +48,13 @@ export interface TextAreaProps {
|
|
|
48
48
|
* updating UI state when users finish interacting with the field.
|
|
49
49
|
*/
|
|
50
50
|
onBlur?: React.FocusEventHandler<FormControlElement>;
|
|
51
|
+
/**
|
|
52
|
+
* Callback function triggered when the text selection changes in the
|
|
53
|
+
* textarea. Useful for implementing features like mention autocomplete or
|
|
54
|
+
* context-sensitive tools that need to react to cursor position or text
|
|
55
|
+
* selection changes.
|
|
56
|
+
*/
|
|
57
|
+
onSelectionChange?: (e: Event) => void;
|
|
51
58
|
/**
|
|
52
59
|
* Placeholder text displayed when the textarea is empty.
|
|
53
60
|
* Provides users with a hint about what type of content is expected.
|
|
@@ -102,4 +109,8 @@ export interface TextAreaProps {
|
|
|
102
109
|
* Usually used in combination with error messages to provide validation feedback.
|
|
103
110
|
*/
|
|
104
111
|
showError?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Ref object to access the underlying textarea DOM element.
|
|
114
|
+
*/
|
|
115
|
+
ref?: React.Ref<HTMLTextAreaElement>;
|
|
105
116
|
}
|