Skip to content

Commit

Permalink
Document how to use caly with bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
zigomir committed Nov 21, 2020
1 parent e18e3ff commit 093378d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/caly-calendar/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@
```


### Bundler

```sh
npm install caly @stencil/core --save-dev
```

```js
import { defineCustomElements } from 'caly'
defineCustomElements()
```

```html
<caly-calendar year="2020" month="1"></caly-calendar>
```


### Simple

```html
Expand Down
12 changes: 12 additions & 0 deletions src/components/caly-calendar/usage/bundler.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```sh
npm install caly @stencil/core --save-dev
```

```js
import { defineCustomElements } from 'caly'
defineCustomElements()
```

```html
<caly-calendar year="2020" month="1"></caly-calendar>
```

0 comments on commit 093378d

Please sign in to comment.