paper-material
A Material Design container that looks like a lifted piece of paper
<paper-material>
paper-material
is a container that renders two shadows on top of each other to
create the effect of a lifted piece of paper.
⚠️ As of the 2.0 release, this element is deprecated in favour of the shared styles in PolymerElements/paper-styles
. Please see the implementation of PolymerElements/paper-button
for an example.
See: Documentation, Demo.
Usage
Installation
npm install --save @polymer/paper-material
In an html file
<html>
<head>
<script type="module">
import '@polymer/paper-material/paper-material.js';
</script>
</head>
<body>
<paper-material elevation="1">
<div>Some content</div>
</paper-material>
</body>
</html>
In a Polymer 3 element
import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-material/paper-material.js';
class SampleElement extends PolymerElement {
static get template() {
return html`
<paper-material elevation="1">
<div>Some content</div>
</paper-material>
`;
}
}
customElements.define('sample-element', SampleElement);
Contributing
If you want to send a PR to this element, here are the instructions for running the tests and demo locally:
Installation
git clone https://github.com/PolymerElements/paper-material
cd paper-material
npm install
npm install -g polymer-cli
Running the demo locally
polymer serve --npm
open http://127.0.0.1:<port>/demo/
Running the tests
polymer test --npm
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Dependencies
- @polymer/polymer#^3.0.0
- @polymer/paper-styles#^3.0.0-pre.26
- Released
- 2018-09-14
- Maturity
- IMPORTED
- License
- BSD 3-clause "New" or "Revised" License
Compatibility
- Framework
- Polymer 3.0+
- Polymer 2.0+ in 2.1.0
- Polymer 1.0+ in 1.0.7
- Browser
- Browser Independent
paper-material - Vaadin Add-on Directory
A Material Design container that looks like a lifted piece of paperView on NPM
View on GitHub
paper-material version 0.8.3
### Dependencies
* polymer#polymer/polymer#v0.8.0-rc.7
* paper-styles#polymerelements/paper-styles#^0.8.0
paper-material version 0.9.0
### Dependencies
* polymer#polymer/polymer#v0.9.0-rc.1
* paper-styles#polymerelements/paper-styles#^0.9.0
paper-material version 0.9.1
### Dependencies
* paper-styles#polymerelements/paper-styles#^0.9.0
* polymer#Polymer/polymer#^0.9.0
paper-material version 0.9.2
### Dependencies
* paper-styles#polymerelements/paper-styles#^0.9.5
* polymer#Polymer/polymer#^0.9.0
paper-material version 1.0.0
### Dependencies
* paper-styles#polymerelements/paper-styles#^1.0.0
* polymer#Polymer/polymer#^1.0.0
paper-material version 1.0.1
### Dependencies
* paper-styles#polymerelements/paper-styles#^1.0.0
* polymer#Polymer/polymer#^1.0.0
paper-material version 1.0.2
### Dependencies
* paper-styles#polymerelements/paper-styles#^1.0.0
* polymer#Polymer/polymer#^1.0.0
paper-material version 1.0.3
### Dependencies
* polymer#Polymer/polymer#^1.1.0
* paper-styles#polymerelements/paper-styles#^1.0.0
paper-material version 1.0.4
### Dependencies
* polymer#Polymer/polymer#^1.1.0
* paper-styles#polymerelements/paper-styles#^1.0.0
paper-material version 1.0.5
### Dependencies
* polymer#Polymer/polymer#^1.1.0
* paper-styles#polymerelements/paper-styles#^1.0.0
paper-material version 1.0.6
### Dependencies
* polymer#Polymer/polymer#^1.1.0
* paper-styles#polymerelements/paper-styles#^1.0.0
paper-material version 0.0.1
### Dependencies
* @polymer/polymer#^1.2.5-npm-test.2
* @polymer/paper-styles#^0.0.1
paper-material version 0.0.3
### Dependencies
* @polymer/polymer#^1.2.5-npm-test.2
* @polymer/paper-styles#^0.0.3
paper-material version 1.0.7
### Dependencies
* polymer#Polymer/polymer#^1.1.0
* paper-styles#polymerelements/paper-styles#^1.0.0
paper-material version 2.0.0
### Dependencies
* polymer#Polymer/polymer#1.9 - 2
* paper-styles#polymerelements/paper-styles#1 - 2
paper-material version 3.0.0-pre.1
### Dependencies
* @polymer/polymer#^3.0.0-pre.1
* @polymer/paper-styles#^3.0.0-pre.1
paper-material version 3.0.0-pre.2
### Dependencies
* @polymer/polymer#^3.0.0-pre.1
* @polymer/paper-styles#^3.0.0-pre.1
paper-material version 3.0.0-pre.3
### Dependencies
* @polymer/polymer#^3.0.0-pre.3
* @polymer/paper-styles#^3.0.0-pre.3
paper-material version 3.0.0-pre.4
### Dependencies
* @polymer/polymer#^3.0.0-pre.4
* @polymer/paper-styles#^3.0.0-pre.4
paper-material version 3.0.0-pre.6
### Dependencies
* @polymer/polymer#^3.0.0-pre.6
* @polymer/paper-styles#^3.0.0-pre.6
paper-material version 3.0.0-pre.7
### Dependencies
* @polymer/polymer#^3.0.0-pre.7
* @polymer/paper-styles#^3.0.0-pre.7
paper-material version 3.0.0-pre.8
### Dependencies
* @polymer/polymer#^3.0.0-pre.7
* @polymer/paper-styles#^3.0.0-pre.7
paper-material version 2.1.0
### Dependencies
* polymer#Polymer/polymer#1.9 - 2
* paper-styles#PolymerElements/paper-styles#1 - 2
paper-material version 3.0.0-pre.10
### Dependencies
* @polymer/polymer#^3.0.0-pre.10
* @polymer/paper-styles#^3.0.0-pre.10
paper-material version 3.0.0-pre.11
### Dependencies
* @polymer/polymer#^3.0.0-pre.10
* @polymer/paper-styles#^3.0.0-pre.10
paper-material version 3.0.0-pre.12
### Dependencies
* @polymer/polymer#3.0.0-pre.12
* @polymer/paper-styles#3.0.0-pre.12
paper-material version 3.0.0-pre.13
### Dependencies
* @polymer/polymer#^3.0.0-pre.13
* @polymer/paper-styles#^3.0.0-pre.13
paper-material version 3.0.0-pre.14
### Dependencies
* @polymer/polymer#^3.0.0-pre.13
* @polymer/paper-styles#^3.0.0-pre.14
paper-material version 3.0.0-pre.15
### Dependencies
* @polymer/polymer#^3.0.0-pre.13
* @polymer/paper-styles#^3.0.0-pre.15
paper-material version 3.0.0-pre.16
### Dependencies
* @polymer/polymer#^3.0.0-pre.13
* @polymer/paper-styles#^3.0.0-pre.16
paper-material version 3.0.0-pre.17
### Dependencies
* @polymer/polymer#^3.0.0-pre.13
* @polymer/paper-styles#^3.0.0-pre.17
paper-material version 3.0.0-pre.18
### Dependencies
* @polymer/polymer#^3.0.0
* @polymer/paper-styles#^3.0.0-pre.18
paper-material version 3.0.0-pre.19
### Dependencies
* @polymer/polymer#^3.0.0
* @polymer/paper-styles#^3.0.0-pre.19
paper-material version 3.0.0-pre.20
### Dependencies
* @polymer/polymer#^3.0.0
* @polymer/paper-styles#^3.0.0-pre.20
paper-material version 3.0.0-pre.21
### Dependencies
* @polymer/polymer#^3.0.0
* @polymer/paper-styles#^3.0.0-pre.21
paper-material version 3.0.0-pre.22
### Dependencies
* @polymer/polymer#^3.0.0
* @polymer/paper-styles#^3.0.0-pre.20
paper-material version 3.0.0-pre.23
### Dependencies
* @polymer/polymer#^3.0.0
* @polymer/paper-styles#^3.0.0-pre.22
paper-material version 3.0.0-pre.24
### Dependencies
* @polymer/polymer#^3.0.0
* @polymer/paper-styles#^3.0.0-pre.22
paper-material version 3.0.0-pre.25
### Dependencies
* @polymer/polymer#^3.0.0
* @polymer/paper-styles#^3.0.0-pre.24
paper-material version 3.0.0-pre.26
### Dependencies
* @polymer/polymer#^3.0.0
* @polymer/paper-styles#^3.0.0-pre.25
paper-material version 3.0.0
### Dependencies
* @polymer/polymer#^3.0.0
* @polymer/paper-styles#^3.0.0-pre.26
paper-material version 3.0.1
### Dependencies
* @polymer/polymer#^3.0.0
* @polymer/paper-styles#^3.0.0-pre.26