Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@polymer/iron-demo-helpers
Advanced tools
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>
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 | {} |
url-bar
is a helper element that displays a simple read-only URL bar if
and only if the page is in an iframe. In this way we can demo elements that
deal with the URL in our iframe-based demo environments.
If the page is not in an iframe, the url-bar element is not displayed.
The following custom properties and mixins are available for styling:
Custom property | Description | Default |
---|---|---|
--url-bar | Mixin applied to the entire element | {} |
FAQs
Utility classes to make building demo pages easier
The npm package @polymer/iron-demo-helpers receives a total of 4,503 weekly downloads. As such, @polymer/iron-demo-helpers popularity was classified as popular.
We found that @polymer/iron-demo-helpers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.