Skip to content
NSSTCPublic

About

Slim, opinionated WebComponent wrapper

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slim-fit

Slim, opinionated WebComponent wrapper

How to use

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('<strong>Hi!</strong>', 'strong { color: red; }');
    }
}

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

About

Slim, opinionated WebComponent wrapper

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages