oxigen-core

1.0.23 • Public • Published

Oxigen

Oxigen is a JavaScript library for creating user interfaces. With oxigen you can create your own custom html elemnt

Usage

import Component, { sass, html } from "oxigen-core";

const App = Component({
    taged: "oxi-app",
    props: {
		title: {
			type: "string",
			value: "OXIGEN"
		}
	},
    styles() {
        return sass\`
            *, :host {
                box-sizing: border-box;
                font-family: Arial, sans-serif;
            }
            :host {
                display: flex;
                width: 100%;
                justify-content: center;
            }
            h1 {
				font-size: 2rem;
			}
        \`;
    },
    render() {
        return html\`
            <h1>${this.title}</h1>
        \`;
    },
});

App.define();

Readme

Keywords

none

Package Sidebar

Install

npm i oxigen-core

Weekly Downloads

0

Version

1.0.23

License

MIT

Unpacked Size

138 kB

Total Files

12

Last publish

Collaborators

  • ahmedqo