element-easel
Version:
Wrap an element. Paint on it.
22 lines (17 loc) • 466 B
Markdown
## React custom element boilerplate
Try it with pressure-sensitive tablet or phone. It's fun!
```html
<!-- Custom Elements v1 polyfill (2.7KB gzipped) -->
<script src="https://unpkg.com/@webcomponents/custom-elements@1.0.0-alpha.3"></script>
```
```html
<!-- Our custom element's source -->
<script src="https://unpkg.com/element-easel@1.0.5"></script>
```
```html
<element-easel stroke="red" stroke-width="5">
<div>
My stuff
</div>
</element-easel>
```