Catalog npm
PACKAGE EXPLORERView in registry

@!!!!!/elemental

npm

Control the elements using JS

domelementaljsxtemplate
Versions collected15
Direct dependencies1From release 0.5.40
Last observed20 Oct, 21:43 UTC

README

Current package documentation

Try this library in the Browser Console on Deno.land!

For VS Code use this extension to get syntax highlighting.

var { html } = await import("https://deno.land/x/elementalist@0.5.39/main/deno.js?code")

// create a custom component
const myAsyncCustomComponent = async ({ style, children, ...props }) => {
    // load a big'ole depenency like d3
    const d3 = await import('https://cdn.skypack.dev/d3')
    return html`<div style=${style}>
        Do you even Async?
        Keys of the d3 library: ${JSON.stringify(Object.keys(d3))}
    </div>`
}

// add it to the local scope
html = html.extend({myAsyncCustomComponent})

// change some elements
document.body = html`<body style="padding:1rem;">
    Hello World (I render Immediately)
    <br>
    <myAsyncCustomComponent style='background: darkgray; color: white; padding: 1rem; border-radius: 1rem; margin: 0.3rem;' />
    <br>
    this ^ takes a second to render cause it has a massive async depenency
</body>`

You can also use it with JSX:

/** @jsx html */
var { html } = await import("https://deno.land/x/elementalist@0.5.34/main/deno.js?code")

// create a custom component
const myAsyncCustomComponent = async ({ style, children, ...props }) => {
    // load a big'ole depenency like d3
    const d3 = await import('https://cdn.skypack.dev/d3')
    return <div style={style}>
        Do you even Async?
        Keys of the d3 library: {JSON.stringify(Object.keys(d3))}
    </div>
}

// change some elements
document.body = <body style="padding:1rem;">
    Hello World (I render Immediately)
    <br>
    <myAsyncCustomComponent style='background: darkgray; color: white; padding: 1rem; border-radius: 1rem; margin: 0.3rem;' />
    <br>
    this ^ takes a second to render cause it has a massive async depenency
</body>

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 15

Collected releases
VersionPublishedDirect dependenciesOpen version
0.5.40Registry latest4 Aug 20241
0.5.394 Aug 20241
0.0.137 Apr 20221
0.0.125 Dec 20211
0.0.115 Dec 20211
0.0.105 Dec 20211
0.0.95 Dec 20211
0.0.85 Dec 20211
0.0.719 Sept 20211
0.0.619 Sept 20211
0.0.518 Sept 20211
0.0.418 Sept 20211
0.0.318 Sept 20211
0.0.218 Sept 20211
0.0.118 Sept 20211

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
jeff-hykin/elemental

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:43 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c5f11e99fde81e7b8b9e06571c06d3ecd428cddfa28df8872975f56beb43c3ec