0.1.1 • Published 7 years ago

@bblocks/component v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

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.