Skip to content

Commit 93c8b9c

Browse files
committed
updated JSDocs
1 parent 2ce8a18 commit 93c8b9c

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

packages/uui-textarea/lib/uui-textarea.element.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,16 @@ import { UUITextareaEvent } from './UUITextareaEvent';
55
import { ifDefined } from 'lit/directives/if-defined.js';
66
/**
77
* @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
813
*/
9-
export class UUITextareaElement extends LabelMixin('input label', LitElement) {
14+
export class UUITextareaElement extends LabelMixin(
15+
'textarea label',
16+
LitElement
17+
) {
1018
static styles = [
1119
css`
1220
:host {
@@ -83,7 +91,7 @@ export class UUITextareaElement extends LabelMixin('input label', LitElement) {
8391
}
8492

8593
/**
86-
* Defines the input placeholder.
94+
* Defines the textarea placeholder.
8795
* @type {string}
8896
* @attr
8997
* @default ''
@@ -92,7 +100,7 @@ export class UUITextareaElement extends LabelMixin('input label', LitElement) {
92100
placeholder = '';
93101

94102
/**
95-
* Disables the input.
103+
* Disables the textarea.
96104
* @type {boolean}
97105
* @attr
98106
* @default false
@@ -113,7 +121,7 @@ export class UUITextareaElement extends LabelMixin('input label', LitElement) {
113121
private _value = '';
114122

115123
/**
116-
* This is a value property of the uui-input.
124+
* This is a value property of the uui-textarea.
117125
* @type {string}
118126
* @attr
119127
* @default ''
@@ -135,7 +143,7 @@ export class UUITextareaElement extends LabelMixin('input label', LitElement) {
135143
}
136144

137145
/**
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.
139147
* @type {string}
140148
* @attr
141149
* @default ''
@@ -144,7 +152,7 @@ export class UUITextareaElement extends LabelMixin('input label', LitElement) {
144152
name = '';
145153

146154
/**
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.
148156
* @type {boolean}
149157
* @attr
150158
* @default false

0 commit comments

Comments
 (0)