Skip to content
/ ui Public

musakui/ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ui

web ui

npm

Features

  • html tagged template literal (similar to lit-html and uhtml)
  • signal and computed (powered by alien-signals)
  • No vDOM, direct content/attribute/property/event bindings

Usage

Basic HTML and reactive rendering

import { html, signal, computed, mount } from '@musakui/ui'

function Counter() {
	const count = signal(0)
	const double = computed(() => count.value * 2)

	return html`<div>
		<p>Count: ${count}</p>
		<p>Double: ${double}</p>
		<button @click=${() => count.value++}>Increment</button>
	</div>`
}

mount(Counter, document.body)

About

web ui

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors