@bookklik/senangstart-actions
v0.1.5
Published
Declarative UI framework for humans and AI agents
Downloads
18
Maintainers
Readme
SenangStart Actions
Declarative UI framework for humans and AI agents.
Installation
npm install @bookklik/senangstart-actionsBasic Usage
Include the script and use ss-* directives in your HTML:
<script src="dist/senangstart-actions.js"></script>
<div ss-data="{ count: 0 }">
<button ss-on:click="count--">-</button>
<span ss-text="count"></span>
<button ss-on:click="count++">+</button>
</div>Key Directives
ss-data: Define component state within a scopess-text: Update text content reactivelyss-html: Update inner HTML reactivelyss-on:[event]: Listen for events (e.g.,ss-on:click)ss-model: Two-way data binding for inputsss-if: Conditionally render elementsss-show: Toggle visibility (display: none)ss-for: Loop over arrays/objectsss-bind:[attr]: Bind attributes dynamicallyss-cloak: Hide element until compiledss-ref: Reference element in$refsss-init: Run expression on initializationss-effect: Run side effects reactivelyss-id: Generate unique IDsss-teleport: Teleport content to another DOM locationss-transition: Configure enter/leave transitions
Development
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Run tests
npm run test
# Start documentation server
npm run docs:devDocumentation
Full docs at bookklik-technologies.github.io/senangstart-actions
License
Read MIT License
