material-web/demos/chips.html
Cyrille Colin e1d6998115
Fix typo in chips demo
replace leadingIcon with trailingIcon in trailing icon demo
2018-10-10 11:08:50 +02:00

71 lines
2.2 KiB
HTML

<!doctype html>
<!--
@license
Copyright 2018 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>
<title>chips demo</title>
<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-chips/mwc-chip.js"></script>
<script type="module" src="../node_modules/@material/mwc-chips/mwc-chip-set.js"></script>
<script type="module" src="../node_modules/@material/mwc-icon/mwc-icon.js"></script>
<link rel="stylesheet" href="demo-component.css">
<style>
mwc-chip-set {
--mwc-theme-primary: lightblue;
--mwc-theme-text-primary-on-primary: tomato;
}
</style>
</head>
<body class="unresolved">
<header>
<a href="index.html"><mwc-icon>arrow_back</mwc-icon>
<span>Chips</span></a>
</header>
<main>
<mwc-chip-set>
<mwc-chip label="Chip"></mwc-chip>
<mwc-chip label="Leading Icon" leadingIcon="fingerprint"></mwc-chip>
<mwc-chip label="Trailing Icon" trailingIcon="language"></mwc-chip>
</mwc-chip-set>
<h3>choice</h3>
<mwc-chip-set type="choice">
<mwc-chip label="A"></mwc-chip>
<mwc-chip label="B" leadingIcon="fingerprint"></mwc-chip>
<mwc-chip label="C" leadingIcon="language"></mwc-chip>
</mwc-chip-set>
<h3>filter</h3>
<mwc-chip-set type="filter">
<mwc-chip label="1"></mwc-chip>
<mwc-chip label="2" leadingIcon="fingerprint"></mwc-chip>
<mwc-chip label="3" leadingIcon="language"></mwc-chip>
</mwc-chip-set>
</main>
<script>
addEventListener('load', () => document.body.classList.remove('unresolved'));
</script>
</body>
</html>