15.3.4 • Published 5 months ago

@nichoth/tonic v15.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

A fork of @socketsupply/tonic

tests Socket Badge module license

Tonic is a low profile component framework for the web. It's one file, less than 3kb gzipped and has no dependencies. It's designed to be used with modern Javascript and is compatible with all modern browsers and built on top of Web Components.

Install

npm install @nichoth/tonic

Use

import Tonic from '@nichoth/tonic'

class MyGreeting extends Tonic {
  render () {
    return this.html`<div>Hello, World.</div>`
  }
}

Tonic.add(MyGreeting, 'my-greeting')

After adding your Javascript to your HTML, you can use your component anywhere.

<html>
  <head>
    <script src="my-greeting.js"></script>
  </head>
  <body>
    <my-greeting></my-greeting>
  </body>
</html>

Useful links

MIT License

15.3.0

5 months ago

15.3.2

5 months ago

15.3.1

5 months ago

15.3.4

5 months ago

15.3.3

5 months ago

15.1.8

5 months ago

15.1.7

6 months ago

15.1.6

6 months ago

15.1.5

6 months ago

15.1.4

6 months ago

15.1.3

7 months ago

15.1.2

7 months ago