How to use the styletron-core function in styletron-core

To help you get started, we’ve selected a few styletron-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fluid-notion / minimal-web-clipper / src / js / Clipper.js View on Github external
async clip(target) {
        if (target.length === 0) {
            return;
        }
        this.styles = new StyletronCore();
        const selector = selectorQuery(target[0]);
        const clone = await this.visitNode(target);
        await downloadAsFile(this.buildFinalHTML(clone, selector));
    },

styletron-core

Universal, high-performance JavaScript styles

MIT
Latest version published 6 years ago

Package Health Score

53 / 100
Full package analysis

Popular styletron-core functions

Similar packages