@muraldevkit/ui-toolkit 2.79.4 → 2.81.0

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.
@@ -16,7 +16,8 @@ interface MrlTextInputProps {
16
16
  value?: string;
17
17
  /**
18
18
  * The maximum number of characters that the user can enter.
19
- * If undefined or set to "0", removes the character counter from the textarea
19
+ *
20
+ * If undefined or set to "0", removes the character counter from the input
20
21
  */
21
22
  maxLength?: number;
22
23
  /** Text placeholder for the text input */
@@ -5,7 +5,7 @@ interface MrlTextareaProps {
5
5
  /** Applies additional HTML attributes to the textarea element */
6
6
  attrs?: AttrsObject;
7
7
  /** The value of the textarea used to make it a controlled input */
8
- value: string;
8
+ value?: string;
9
9
  /**
10
10
  * The maximum number of characters that the user can enter.
11
11
  * If undefined or set to "0", removes the character counter from the textarea
@@ -25,6 +25,8 @@ interface MrlTextareaProps {
25
25
  state?: 'disabled' | 'error';
26
26
  /** Additional class to add to the textarea */
27
27
  className?: string;
28
+ /** Autoexpand will automatically adjust the height of the textarea based on the amount of text within it */
29
+ autoExpand?: boolean;
28
30
  }
29
31
  /**
30
32
  * Allows the user to input plain text in a multi-line format
@@ -32,5 +34,5 @@ interface MrlTextareaProps {
32
34
  * @param {MrlTextareaProps} props - the component props
33
35
  * @returns a textarea element
34
36
  */
35
- export declare function MrlTextarea({ attrs, className, inputId, state, maxLength, placeholder, value }: MrlTextareaProps): JSX.Element;
37
+ export declare function MrlTextarea({ attrs, className, inputId, state, maxLength, placeholder, value, autoExpand }: MrlTextareaProps): JSX.Element;
36
38
  export {};