@bblocks/component
v0.1.1
Published
<img align="right" alt="bBlocks" src="https://github.com/bBlocks/component/blob/master/block.png?raw=true" width="100"/>
Downloads
14
Readme
Building Blocks Component
Use the best parts of the Web to build efficient web applications.
Build your components once and use everywhere. A lightweight and extremenly modular solution. Designed to reduced costs and maximize profit.
Reliable. Few simple APIs . Consistent forever. The rest is just your imagination.
Quick start
- Install
npm install @bblocks/component
- Create an HTML page.
<!DOCTYPE html>
<html>
<head>
<title>Component</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="node_modules/@bblocks/component/component.polyfills.min.js"></script>
<script src="node_modules/@bblocks/component/component.js"></script>
</head>
<body>
<my-field-element class="form-control"></my-field-element>
<script>
bb.component({
is: 'my-field-element',
on: {
attach: function() {
this.innerHTML = 'Hello!';
}
}
});
</script>
</body>
</html>
- You are now free to build the Web!
Demo
Documentation
Special
- Create Features and define Components.
- Lifecycle events.
- Extend native DOM elements.
- Transpiling is not required.
- Supports all modern browsers and IE11.