<paper-stamp>

A Web Component to display an img as a paper stamp.
There are three stargazers on GitHub and it has over 350 downloads on npm.

A monochrome pixel-art image of a stamp featuring an adorable little cow’s head

paper-stamp on GitHub paper-stamp Releases paper-stamp License

Features Permalink

<paper-stamp> is a native Web Component that displays an <img> as a paper stamp.

Check out the demo page.

Usage Permalink

General usage example

You can begin using the <paper-stamp> Web Component by including a <script> tag in your HTML, with the component itself wrapping a <img>:

<script type="module" src="paper-stamp.js"></script>

<paper-stamp>
	<img src="/image.png" alt="...">
</paper-stamp>

There are also a handful of attributes you can set which will override the appearance of the stamps.

Custom stamp color

A monochrome pixel-art image of a stamp featuring an adorable little cow’s head
<paper-stamp color="cyan">
	<img src="/image.png" alt="...">
</paper-stamp>

Custom stamp padding

A monochrome pixel-art image of a stamp featuring an adorable little cow’s head
<paper-stamp padding="50px">
	<img src="/image.png" alt="...">
</paper-stamp>

Custom stamp perforation size

A monochrome pixel-art image of a stamp featuring an adorable little cow’s head
<paper-stamp perforation="15px">
	<img src="/image.png" alt="...">
</paper-stamp>

Custom stamp perforation spacing

A monochrome pixel-art image of a stamp featuring an adorable little cow’s head
<paper-stamp spacing="6">
	<img src="/image.png" alt="...">
</paper-stamp>

You can also send an anonymous reply (using Quill and Comment Parade).

3 Responses

  1. 3 Stargazers