Skip to content

Commit

Permalink
Fix bad markdown file
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Aug 24, 2024
1 parent 10f5995 commit 374bb15
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/how_to/custom_components/esm/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ To recap here are the three files that we need:

::::{tab-set}

:::tab-item package.json
:::{tab-item} package.json

```json
{
"name": "confetti-button",
Expand All @@ -112,6 +113,8 @@ To recap here are the three files that we need:
:::

:::{tab-item} confetti.py

``` python
import panel as pn

from panel.custom import JSComponent
Expand All @@ -123,9 +126,12 @@ class ConfettiButton(JSComponent):
_esm = 'confetti.bundled.js'

ConfettiButton().servable()
```
:::


:::{tab-item} confetti.js
``` javascript
import confetti from "canvas-confetti";

export function render() {
Expand Down

0 comments on commit 374bb15

Please sign in to comment.