@elimux/core
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Elimux

Elimux is a react component library under development.

Usage

Add elimux as a dependency using npm:

$ npm i @elimux/core

Import the component library into your project

import * as React from "react";
import * as Core from "@elimux/core";

interface Item {
  name: string;
  price: number;
}

class ItemList extends Core.Components.List<Item> {
  renderItem(item: Item) {
    return <span><b>{item.name}</b>: £{item.price}</span>;
  }
}

class HomePage extends Core.Components.Page {
  render() {
    return (
      <div>
        <h2>Items</h2>
        <ItemList items={[
          { name: "Orange", price: 0.99 },
          { name: "Bannana", price: 1.15 }
        ]}/>
      </div>
    );
  }
}

Features

Feature Status
Currency Needs Design
List In Progress, Needs Design
Page In Progress, Needs Design

Readme

Keywords

Package Sidebar

Install

npm i @elimux/core

Weekly Downloads

2

Version

0.2.0

License

MIT

Last publish

Collaborators

  • elimux