We’re not designing pages, we’re designing systems of components. — Stephen Hay
Iizuna is available for use under the MIT software license.
You can report bugs and discuss features on the GitHub issues page.
To dive into the development you can take a look at the sample page. There you will find some simple example components and a ready to use build process.
npm install iizuna --save
Websites using iizuna
What is iizuna?
Iizuna came from the idea of designing a truly developer-friendly framework. Many of today's TypeScript frameworks, such as Angular or React, are not designed to be used on pages that rely on old-fashioned server-side rendering.
This framework is really easy to use because it basically consists of only one building block, the component.
These components reflect rough HTML elements. Selectors (currently only data-attributes) define which elements are decorated with the business-logic you develop.
Additional attributes allow additional configuration of the components, making them easily reusable.
First of all a few explanations to some of the words used in this framework.
The class containing the business logic. Not to be confused with the Individual-Component.
The objects instantiated based by the Component they are descendants of. For each matching element on the page, which matches the component selector, a Individual-Component is created.
CustomEvents which are dispatched directly to the document.
First, a component must be declared. Here we declare a simple "scroll to top" button.
// scroll-top.component.ts;/*** Decorate the declared component class with the @Component decorator (the magic happens here)*/
Then we need to register the created component for bootstrapping.
<!-- index.html -->TypeScript ComponentsTo Top 1000ms
Take a look at the examples if you want to see more advanced component configurations.