Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / paper-item / paper-item.html
blob290e4f98b1cb2a45b6368665fad4b3d2db0aa02b
1 <!--
2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9 --><html><head><link rel="import" href="../polymer/polymer.html">
10 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
11 <link rel="import" href="../paper-styles/paper-styles.html">
13 <!--
14 `<paper-item>` is a non-interactive list item. By default, it is a horizontal flexbox.
16 <paper-item>Item</paper-item>
18 Use this element with `<paper-item-body>` to make Material Design styled two-line and three-line
19 items.
21 <paper-item>
22 <paper-item-body two-line>
23 <div>Show your status</div>
24 <div secondary>Your status is visible to everyone</div>
25 </paper-item-body>
26 <iron-icon icon="warning"></iron-icon>
27 </paper-item>
29 ### Styling
31 The following custom properties and mixins are available for styling:
33 Custom property | Description | Default
34 ----------------|-------------|----------
35 `--paper-item-min-height` | Minimum height of the item | `48px`
36 `--paper-item` | Mixin applied to the item | `{}`
38 ### Accessibility
40 This element has `role="listitem"` by default. Depending on usage, it may be more appropriate to set
41 `role="menuitem"`, `role="menuitemcheckbox"` or `role="menuitemradio"`.
43 <paper-item role="menuitemcheckbox">
44 <paper-item-body>
45 Show your status
46 </paper-item-body>
47 <paper-checkbox></paper-checkbox>
48 </paper-item>
50 @group Paper Elements
51 @element paper-item
52 @demo demo/index.html
53 -->
55 </head><body><dom-module id="paper-item">
57 <link rel="import" type="css" href="paper-item-shared.css">
59 <style>
61 :host {
62 @apply(--layout-horizontal);
63 @apply(--layout-center);
64 @apply(--paper-font-subhead);
66 @apply(--paper-item);
69 </style>
71 <template>
72 <content></content>
73 </template>
75 </dom-module>
77 <script src="paper-item-extracted.js"></script></body></html>