Name Last Update
..
demo Loading commit data...
test Loading commit data...
.bower.json Loading commit data...
.gitignore Loading commit data...
CONTRIBUTING.md Loading commit data...
README.md Loading commit data...
bower.json Loading commit data...
demo-pages-shared-styles.html Loading commit data...
demo-snippet.html Loading commit data...
index.html Loading commit data...

README.md

Demo and API Docs

##<demo-snippet>

demo-snippet is a helper element that displays the source of a code snippet and its rendered demo. It can be used for both native elements and Polymer elements.

Example of a native element demo

    <demo-snippet>
      <template>
        <input type="date">
      </template>
    </demo-snippet>

Example of a Polymer <paper-checkbox> demo

    <demo-snippet>
      <template>
        <paper-checkbox>Checkbox</paper-checkbox>
        <paper-checkbox checked>Checkbox</paper-checkbox>
      </template>
    </demo-snippet>

Styling

The following custom properties and mixins are available for styling:

Custom property Description Default
--demo-snippet Mixin applied to the entire element {}
--demo-snippet-demo Mixin applied to just the demo section {}
--demo-snippet-code Mixin applied to just the code section {}