๐ Micro Component System (619 bytes!)
A tiny yet powerful HTML component system that lets you build reusable UI pieces with pure HTML. No frameworks, no dependencies - just drop in and go!
โก๏ธ Why This is Awesome
- Microscopic: Only 619 bytes minified! That's smaller than a single tweet ๐คฏ
- Pure HTML Magic: Build components using native
<template>
tags - Zero Dependencies: No React, Vue, or any other framework needed
- Dark Mode Ready: Sleek, modern UI with gradient goodness
- Drop-Dead Simple: Learn it in 30 seconds, use it forever
๐ฎ Quick Start
<!-- 1. Add the tiny script --> <script src="//unpkg.com/nextway"></script> <!-- 2. Create your component --> <template name="cool-button" props="text"> <button class="gradient-btn">{text}</button> </template> <!-- 3. Use it anywhere! --> <cool-button text="Click me!"></cool-button>
๐จ Killer Components
Gradient Button
<template name="neo-button" props="text"> <button class="neo-gradient-btn">{text}</button> </template>
Glass Card
<template name="glass-card" props="title, content"> <div class="glass-effect"> <h2>{title}</h2> <p>{content}</p> </div> </template>
๐ Super-Slick Styling
.neo-gradient-btn { background: linear-gradient(135deg, #4f46e5, #9333ea); color: white; padding: 12px 24px; border-radius: 8px; border: none; cursor: pointer; transition: all 0.3s ease; } .glass-effect { background: linear-gradient(135deg, #3b82f680, #1e293b80); backdrop-filter: blur(12px); border-radius: 16px; padding: 24px; border: 1px solid rgba(255, 255, 255, 0.1); }
๐ฏ How It Works
The magic happens in 4 tiny steps:
- Finds
<template>
tags - Processes them into components
- Replaces custom elements
- Injects your props
๐ก Pro Tips
- Use semantic component names like
<user-card>
instead of generic ones - Keep components small and focused
- Leverage CSS variables for theming
- Chain components to build complex UIs
๐ฆ Installation
Just add this one line. That's it. Really!
<script src="//unpkg.com/nextway"></script>
๐ MIT Licensed
Free and open source. Build something awesome!
Built with โก๏ธ by Nazmul Hossain, for developers
Top comments (0)