An open API service indexing awesome lists of open source software.

https://github.com/nsstc/slim-fit

Slim, opinionated WebComponent wrapper
https://github.com/nsstc/slim-fit

Last synced: 11 months ago
JSON representation

Slim, opinionated WebComponent wrapper

Awesome Lists containing this project

README

          

# slim-fit
Slim, opinionated WebComponent wrapper

## How to use

```typescript
import {SlimFit} from "slim-fit";

class MyComponent extends SlimFit {
protected render() {
// you may pass an HTMLElement or Node or Fragment for the first parameter, too
this.draw('Hi!', 'strong { color: red; }');
}
}

// register HTML-Tag-Name
MyComponent.registerTag('my-component');

```