-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
36 lines (30 loc) · 926 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html lang="en">
<head>
<title>Elastic Textarea</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta
name="description"
content="A web component for progressively-enhanced auto-expanding textareas"
/>
<script src="/index.js" type="module"></script>
<style>
textarea {
display: block;
}
</style>
</head>
<body>
<label for="demo">Type in the textarea below</label>
<elastic-textarea>
<textarea id="demo" name="demo"></textarea>
</elastic-textarea>
<elastic-textarea>
<textarea id="demo2" name="demo2" rows="5"></textarea>
<textarea id="demo3" name="demo3" rows="2">
Base value, bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla</textarea
>
</elastic-textarea>
</body>
</html>