@@ -5,8 +5,16 @@ import { UUITextareaEvent } from './UUITextareaEvent';
5
5
import { ifDefined } from 'lit/directives/if-defined.js' ;
6
6
/**
7
7
* @element uui-textarea
8
+ * @extends LabelMixin(LitElement)
9
+ * @slot textarea label - for the textarea label text.
10
+ * @fires UUITextareaEvent#change on change
11
+ * @fires InputEvent#input on input
12
+ * @fires KeyboardEvent#keyup on keyup
8
13
*/
9
- export class UUITextareaElement extends LabelMixin ( 'input label' , LitElement ) {
14
+ export class UUITextareaElement extends LabelMixin (
15
+ 'textarea label' ,
16
+ LitElement
17
+ ) {
10
18
static styles = [
11
19
css `
12
20
:host {
@@ -83,7 +91,7 @@ export class UUITextareaElement extends LabelMixin('input label', LitElement) {
83
91
}
84
92
85
93
/**
86
- * Defines the input placeholder.
94
+ * Defines the textarea placeholder.
87
95
* @type {string }
88
96
* @attr
89
97
* @default ''
@@ -92,7 +100,7 @@ export class UUITextareaElement extends LabelMixin('input label', LitElement) {
92
100
placeholder = '' ;
93
101
94
102
/**
95
- * Disables the input .
103
+ * Disables the textarea .
96
104
* @type {boolean }
97
105
* @attr
98
106
* @default false
@@ -113,7 +121,7 @@ export class UUITextareaElement extends LabelMixin('input label', LitElement) {
113
121
private _value = '' ;
114
122
115
123
/**
116
- * This is a value property of the uui-input .
124
+ * This is a value property of the uui-textarea .
117
125
* @type {string }
118
126
* @attr
119
127
* @default ''
@@ -135,7 +143,7 @@ export class UUITextareaElement extends LabelMixin('input label', LitElement) {
135
143
}
136
144
137
145
/**
138
- * This is a name property of the `<uui-input >` component. It reflects the behaviour of the native `<input / >` element and its name attribute.
146
+ * This is a name property of the `<uui-textarea >` component. It reflects the behaviour of the native `<textarea >` element and its name attribute.
139
147
* @type {string }
140
148
* @attr
141
149
* @default ''
@@ -144,7 +152,7 @@ export class UUITextareaElement extends LabelMixin('input label', LitElement) {
144
152
name = '' ;
145
153
146
154
/**
147
- * Set to true if the component should have an error state.Property is reflected to the corresponding attribute.
155
+ * Set to true if the component should have an error state. Property is reflected to the corresponding attribute.
148
156
* @type {boolean }
149
157
* @attr
150
158
* @default false
0 commit comments