2019-08-16 04:23:43 +03:00
|
|
|
<!doctype html>
|
|
|
|
<!--
|
|
|
|
@license
|
|
|
|
Copyright 2019 Google Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
<html>
|
|
|
|
<head>
|
2019-08-17 02:30:43 +03:00
|
|
|
<title>textarea demo</title>
|
2019-08-16 04:23:43 +03:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
|
|
|
|
<script type="module" src="../node_modules/@material/mwc-textarea/mwc-textarea.js"></script>
|
|
|
|
<script type="module" src="../node_modules/@material/mwc-icon/mwc-icon.js"></script>
|
|
|
|
<link rel="stylesheet" href="demo-component.css">
|
2019-10-08 23:54:28 +03:00
|
|
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet">
|
2019-08-16 04:23:43 +03:00
|
|
|
<style>
|
|
|
|
mwc-textarea {
|
|
|
|
min-width: 250px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body class="unresolved">
|
|
|
|
<header>
|
|
|
|
<a href="index.html"><mwc-icon>arrow_back</mwc-icon>
|
|
|
|
<span>Text Area</span></a>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<main>
|
|
|
|
<h4>Textarea</h4>
|
|
|
|
<div class="demo-group-spaced">
|
|
|
|
<mwc-textarea label="Standard"></mwc-textarea>
|
|
|
|
<mwc-textarea outlined label="Standard"></mwc-textarea>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4>Textarea with Character Counter</h4>
|
|
|
|
<div class="demo-group-spaced">
|
|
|
|
<mwc-textarea label="Standard" maxlength="18" charCounter></mwc-textarea>
|
|
|
|
<mwc-textarea outlined label="Standard" maxlength="18" charCounter></mwc-textarea>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4>Textarea with Helper Text</h4>
|
|
|
|
<div class="demo-group-spaced">
|
|
|
|
<mwc-textarea label="Standard" helper="Helper Text" helperPersistent></mwc-textarea>
|
|
|
|
<mwc-textarea outlined label="Standard" helper="Helper Text" helperPersistent></mwc-textarea>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4>Full Width Textarea</h4>
|
|
|
|
<mwc-textarea outlined fullwidth label="Standard" helper="Helper Text" helperpersistent></mwc-textarea>
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
addEventListener('load', () => document.body.classList.remove('unresolved'));
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|