2018-04-26 05:20:55 +03:00
|
|
|
<!doctype html>
|
|
|
|
<!--
|
|
|
|
@license
|
2019-08-17 02:59:20 +03:00
|
|
|
Copyright 2018 Google Inc. All Rights Reserved.
|
2018-04-26 05:20:55 +03:00
|
|
|
|
|
|
|
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>
|
|
|
|
<title>textfield demo</title>
|
2018-05-07 23:17:46 +03:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2018-05-01 04:10:36 +03:00
|
|
|
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
|
2018-04-26 05:20:55 +03:00
|
|
|
<script type="module" src="../node_modules/@material/mwc-textfield/mwc-textfield.js"></script>
|
|
|
|
<script type="module" src="../node_modules/@material/mwc-icon/mwc-icon.js"></script>
|
2019-08-06 04:17:17 +03:00
|
|
|
<script type="module" src="../node_modules/@material/mwc-icon/mwc-icon-font.js"></script>
|
2018-04-26 05:20:55 +03:00
|
|
|
<link rel="stylesheet" href="demo-component.css">
|
2019-07-11 20:04:14 +03:00
|
|
|
<style>
|
|
|
|
mwc-textfield {
|
|
|
|
min-width: 240px;
|
|
|
|
}
|
|
|
|
.shaped-filled {
|
2019-08-16 04:23:43 +03:00
|
|
|
--mdc-text-field-filled-border-radius: 32px 32px 0 0;
|
2019-07-11 20:04:14 +03:00
|
|
|
}
|
|
|
|
.shaped-outlined {
|
2019-08-13 03:44:20 +03:00
|
|
|
--mdc-notched-outline-leading-width: 28px;
|
|
|
|
--mdc-notched-outline-leading-border-radius: 28px 0 0 28px;
|
|
|
|
--mdc-notched-outline-trailing-border-radius: 0 28px 28px 0;
|
2019-07-11 20:04:14 +03:00
|
|
|
}
|
|
|
|
</style>
|
2018-04-26 05:20:55 +03:00
|
|
|
</head>
|
|
|
|
<body class="unresolved">
|
|
|
|
<header>
|
2018-05-07 23:17:46 +03:00
|
|
|
<a href="index.html"><mwc-icon>arrow_back</mwc-icon>
|
2018-04-26 05:20:55 +03:00
|
|
|
<span>Text Field</span></a>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<main>
|
2019-07-11 20:04:14 +03:00
|
|
|
<h4>Filled</h4>
|
2018-04-26 05:20:55 +03:00
|
|
|
<div class="demo-group-spaced">
|
2019-07-11 20:04:14 +03:00
|
|
|
<mwc-textfield label="Standard"></mwc-textfield>
|
|
|
|
<mwc-textfield label="Standard" icon="event"></mwc-textfield>
|
|
|
|
<mwc-textfield label="Standard" iconTrailing="delete"></mwc-textfield>
|
|
|
|
</div>
|
2018-04-26 05:20:55 +03:00
|
|
|
|
2019-07-11 20:04:14 +03:00
|
|
|
<h4>Shaped Filled</h4>
|
|
|
|
<div class="demo-group-spaced shaped-filled">
|
|
|
|
<mwc-textfield label="Standard"></mwc-textfield>
|
|
|
|
<mwc-textfield label="Standard" icon="event"></mwc-textfield>
|
2019-08-06 04:17:17 +03:00
|
|
|
<mwc-textfield class="color" label="Standard" iconTrailing="delete"></mwc-textfield>
|
2018-04-26 05:20:55 +03:00
|
|
|
</div>
|
|
|
|
|
2019-07-11 20:04:14 +03:00
|
|
|
<h4>Outlined</h4>
|
2018-04-26 05:20:55 +03:00
|
|
|
<div class="demo-group-spaced">
|
2019-07-11 20:04:14 +03:00
|
|
|
<mwc-textfield outlined label="Standard"></mwc-textfield>
|
|
|
|
<mwc-textfield outlined label="Standard" icon="event"></mwc-textfield>
|
|
|
|
<mwc-textfield outlined label="Standard" iconTrailing="delete"></mwc-textfield>
|
|
|
|
</div>
|
2018-04-26 05:20:55 +03:00
|
|
|
|
2019-07-11 20:04:14 +03:00
|
|
|
<h4>Shaped Outlined</h4>
|
|
|
|
<div class="demo-group-spaced shaped-outlined">
|
|
|
|
<mwc-textfield outlined label="Email" type="email"></mwc-textfield>
|
|
|
|
<mwc-textfield outlined label="Standard" icon="event"></mwc-textfield>
|
|
|
|
<mwc-textfield outlined label="Standard" iconTrailing="delete"></mwc-textfield>
|
2018-04-26 05:20:55 +03:00
|
|
|
</div>
|
|
|
|
|
2019-07-11 20:04:14 +03:00
|
|
|
<h4>Text Field without label</h4>
|
2018-04-26 05:20:55 +03:00
|
|
|
<div class="demo-group-spaced">
|
2019-07-11 20:04:14 +03:00
|
|
|
<mwc-textfield helper="Helper Text"></mwc-textfield>
|
|
|
|
<mwc-textfield outlined helper="Helper Text"></mwc-textfield>
|
|
|
|
<mwc-textfield outlined helper="Helper Text" class="shaped-outlined"></mwc-textfield>
|
2018-04-26 05:20:55 +03:00
|
|
|
</div>
|
|
|
|
|
2019-07-11 20:04:14 +03:00
|
|
|
<h4>Text Field with Character Counter</h4>
|
2018-04-26 05:20:55 +03:00
|
|
|
<div class="demo-group-spaced">
|
2019-07-11 20:04:14 +03:00
|
|
|
<mwc-textfield label="Standard" helper="Helper Text" helperPersistent maxlength="18" charCounter></mwc-textfield>
|
|
|
|
<mwc-textfield outlined label="Standard" helper="Helper Text" helperPersistent maxlength="18" charCounter></mwc-textfield>
|
|
|
|
<mwc-textfield outlined label="Standard" helper="Helper Text" helperPersistent maxlength="18" charCounter class="shaped-outlined"></mwc-textfield>
|
2018-04-26 05:20:55 +03:00
|
|
|
</div>
|
2019-07-11 20:04:14 +03:00
|
|
|
<h4>Full Width</h4>
|
|
|
|
<mwc-textfield fullwidth placeholder="Standard" helper="Helper Text" helperpersistent></mwc-textfield>
|
2018-04-26 05:20:55 +03:00
|
|
|
</main>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
addEventListener('load', () => document.body.classList.remove('unresolved'));
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|