Skip to content
tonic / 15.1.1

tonic 15.1.1

Install from the command line:
Learn more about npm packages
$ npm install @socketsupply/tonic@15.1.1
Install via package.json:
"@socketsupply/tonic": "15.1.1"

About this version

tonic

https://tonicframework.dev



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 the Web Components.

Installation

npm install @socketsupply/tonic

Usage

import Tonic from '@socketsupply/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

Copyright (c) 2023 Socket Supply Co.

MIT License

Details


Assets

  • tonic-15.1.1.tgz

Download activity

  • Total downloads 242
  • Last 30 days 0
  • Last week 0
  • Today 0