https://github.com/imhta/drawable
drawable widget for web
https://github.com/imhta/drawable
Last synced: about 1 year ago
JSON representation
drawable widget for web
- Host: GitHub
- URL: https://github.com/imhta/drawable
- Owner: imhta
- License: apache-2.0
- Created: 2019-09-07T17:01:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T17:39:49.000Z (almost 7 years ago)
- Last Synced: 2025-01-20T17:18:15.076Z (over 1 year ago)
- Language: TypeScript
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README

# Drawable Component
This is a drawable standalone Web Component using Stencil, where you can draw.
## Getting Started
Clone this repo to a new directory:
```bash
git clone https://github.com/imhta/drawable my-drawable
cd my-drawable
```
and run:
```bash
npm install
npm start
```
To build the component for production, run:
```bash
npm run build
```
To run the unit tests for the components, run:
```bash
npm test
```
## Using this component
### Script tag
- Put a script tag similar to this `` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc
### Node Modules
- Run `npm install drawable-component --save`
- Put a script tag similar to this `` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc
### In a stencil-starter app
- Run `npm install drawable-component --save`
- Add an import to the npm packages `import drawable;`
- Then you can use the element anywhere in your template, JSX, html etc