Play

Play is a lightweight library for building Web Components.

To create a component, you just call gadget:

import {gadget, zen} from "panda-play"

gadget

  tag: "x-greeting"

  # zen preset gives us all the goodies :)
  mixins: zen

  template: ({value}) -> "<h1>#{value}, World!</h1>"

  on:
    h1:
      click: ({target}) -> @value = "Goodbye"

Features

Demo

Try it out!

Install

Bundle using your favorite bundler:

npm i -S panda-play